Move ParameterSet to a separate file and add javadoc