added javadocs
created controller for documentation