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>