added unit tests, colorized output and file-creation confirmation messaging