Working log system, minor change to singleton, refactored plugins

- more minor changes to the code