Fixed most if not all errors!

Fully functional code now. Just missing some features. Which will be
added over time :) Gotta start with something that works and add to it!
:P