some bugfixes and code improvments, allow plugin developers to specify their own log files, added some tests, bumped version to 1.2