added console colors
several bug fixes