Final update for submission

All commenting completed, plus revision history added and other in code
documentation required by the skeleton file.