Implemented full error handling and code highlighting.