Updated the source some

Now have logger functions, prepairing for a small Terminal interface, similar to the d0 PHP API.
Also, the programm now accepts options and will show a help as well.