Added monitor.h/c for writing and clearing the screen