Added code to create a monitor
Added default config file
moved some things to the default config file and refactored some