Added parameter processing in API class. Added javadoc style comments to all files.