Making code importable, adding terminal color support

![screen shot 2014-06-07 at 18 05 15](https://cloud.githubusercontent.com/assets/1436436/3209153/fd2d6476-ee5d-11e3-9676-233e3f9ebbf7.png)