added comments to ProcessFactory.java