Format code, more error handling, default color