[+] First working copy. 
[+] Lots of changes, but this should be the first one people look at.