undergoing dev with objects
added javadoc