Added javadoc files

Initialized all variables to 0 by default.