added tests and debug mode
also added ansi module to pretty up console output