1)testContains checks for both valid and invalid ids
2)Updated JavaDocs
3)Reformatted Code