Adding some real test conditions
added Copyright and a minimum of JavaDocs