Cleaned up some of the code and added example of reading from config file outside of .jar

Signed-off-by: Stig Lau <stig@lau.no>
Merge pull request #1 from StigLau/master

Cleaned up some of the code and added example of reading from config file