Separated config parsing in separate class (Issue #25)

....and improved lock file handling