Fix methods being private instead of public. Add test unit. Several bugfixes.
Added several tests. Fixed a bug with console mode logging False.