Added support to start service immediately upon installation, enabled running with CLI arguments and some code refactoring.

Tested with the scenarios stated in the README