updated the documentation and fixed the bad documentation, also cleaned up the templates as a loop is not needed for javaopts