colored output and some minor improvements