Javadoc added

Created javadoc files for the classes so far. Made all the classes
public.