Added basic functionality for main.py.

Seperate modules will be available later. This is pre-alpha software and has undergone no testing at all.