Forgot to add some function declarations in the header
Addded some code from OSDev.org to fix the stack overflow. It still needs handling though
Merge branch 'master' of github.com:LeeGiS/Barry_CS-413