Put push and pop methods back
added javadocs