Implemented an improved typing algorithm

Removed invalid test from TestMain (Does not compile as normal haxe
code)
Fixed an indentation error in emacs plugin and reindented Run.hx