added functions for flush, scrollbottom and changing colors based on hexcodes.