Added formatted output for code and system data.

Used tput for colouring terminal output in test.sh
(Useful details at http://stackoverflow.com/a/20983251)
Both test data and code data are saved to text files.
Added both output textfiles to .gitignore
[skip ci]