rearranged test order for generate spreadsheet document.. program
efficiency seems O(n).
Finished javadoc