Update main.cpp
Add the autostart function and clean up code
Update TODO.md
Removed non-working parts
Updated Todo.md
Add static linking
Cleaned up code
Merge pull request #1 from dbkblk/devel

Merge v0.4