Almost working!

First commit of an almost sort of working program :)