Fixes and Console programm

_Fix the line drawer
_Make the midPoint selector faster
_add a basic console debugger
_add more tests