fixed a few bugs, added color for error/warnings - for testing, will remove later