Version 0.05

Structured the code and the main loop etc.