Cleaned up
Added ct.py
Added some tests
Completely working software