Add few comments
Rename internal variables
Enhance configurability

Log and run dirs can be configure via configuration file.
Rename internal variables