updated program unit tests
added todos for javadoc
formatted
changed list to array where possible