Ok, I ment to post this sooner but was holding off so I can clean up the commenting. Since some people are so hell bent on proving daedalus did everything or I just fully stole every line of code from pj64, I desided to just post anways and if they need suport they can go **** them selfs.
Anyways here is the source. If any coders need serious suport or have questions. Feel free to contact me via PMs or on my forums.