added some improvements to the logging system and organized some things, going to branch and work on SQlite logging