added config file and some error handling
nl eof
Fix conflict
Merge pull request #7 from Pacane/config-file

added config file and some error handling