varargs and javadoc copy and documentation

Code modified to handle varargs methods properly.
JavaDoc is also generated and copied into the code.
Classes are also documented.
log was accidentally added
debug file writing is removed