Added automated coverage for tests
Improved code coverage from unit tests
Refactored and documented pycic's code