Added Javadoc comments to GP package.