added more elements for testing. Also updated the javadoc.