Added more hooks
Added ability to write to the config file, renamed load to _load