You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@systemml.apache.org by de...@apache.org on 2016/11/18 02:25:03 UTC

[2/2] incubator-systemml git commit: [SYSTEMML-842] Javadoc cleanup in transform and util packages and overview

[SYSTEMML-842] Javadoc cleanup in transform and util packages and overview

Remove blank comments.
Fix broken comments.
Change @see to @link in overview to remove warnings.


Project: http://git-wip-us.apache.org/repos/asf/incubator-systemml/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-systemml/commit/13c0b06d
Tree: http://git-wip-us.apache.org/repos/asf/incubator-systemml/tree/13c0b06d
Diff: http://git-wip-us.apache.org/repos/asf/incubator-systemml/diff/13c0b06d

Branch: refs/heads/master
Commit: 13c0b06d1fd6583578077293be26ae6e97dd9fa5
Parents: 3dace38
Author: Deron Eriksson <de...@us.ibm.com>
Authored: Thu Nov 17 18:22:47 2016 -0800
Committer: Deron Eriksson <de...@us.ibm.com>
Committed: Thu Nov 17 18:22:47 2016 -0800

----------------------------------------------------------------------
 .../instructions/gpu/context/JCudaObject.java   |   4 +-
 .../runtime/transform/ApplyTfCSVSPARK.java      |  16 +-
 .../sysml/runtime/transform/BinAgent.java       |  22 +-
 .../sysml/runtime/transform/DataTransform.java  | 158 ++++++-----
 .../sysml/runtime/transform/DummycodeAgent.java |  25 +-
 .../sysml/runtime/transform/GenTfMtdSPARK.java  |  21 +-
 .../sysml/runtime/transform/MVImputeAgent.java  |  45 +--
 .../sysml/runtime/transform/RecodeAgent.java    |  40 +--
 .../apache/sysml/runtime/transform/TfUtils.java |  24 +-
 .../sysml/runtime/transform/decode/Decoder.java |  16 +-
 .../transform/decode/DecoderFactory.java        |   9 +-
 .../runtime/transform/decode/DecoderRecode.java |   6 +-
 .../sysml/runtime/transform/encode/Encoder.java |  41 ++-
 .../transform/encode/EncoderFactory.java        |  29 +-
 .../runtime/transform/meta/TfMetaUtils.java     |  91 ++----
 .../runtime/transform/meta/TfOffsetMap.java     |  14 +-
 .../sysml/runtime/util/DataConverter.java       | 281 ++++---------------
 .../util/FastBufferedDataInputStream.java       |  20 +-
 .../util/FastBufferedDataOutputStream.java      |  24 +-
 .../sysml/runtime/util/FastStringTokenizer.java |  14 +-
 .../sysml/runtime/util/LocalFileUtils.java      | 208 +++++---------
 .../runtime/util/LongLongDoubleHashMap.java     |  38 +--
 .../sysml/runtime/util/MapReduceTool.java       |  58 +---
 .../apache/sysml/runtime/util/SortUtils.java    |  70 ++---
 .../sysml/runtime/util/UtilFunctions.java       | 218 ++++----------
 src/main/javadoc/overview.html                  |  32 +--
 26 files changed, 451 insertions(+), 1073 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-systemml/blob/13c0b06d/src/main/java/org/apache/sysml/runtime/instructions/gpu/context/JCudaObject.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/sysml/runtime/instructions/gpu/context/JCudaObject.java b/src/main/java/org/apache/sysml/runtime/instructions/gpu/context/JCudaObject.java
index 0c96417..412ede7 100644
--- a/src/main/java/org/apache/sysml/runtime/instructions/gpu/context/JCudaObject.java
+++ b/src/main/java/org/apache/sysml/runtime/instructions/gpu/context/JCudaObject.java
@@ -467,8 +467,8 @@ public class JCudaObject extends GPUObject {
 	/**
 	 * Convenience method for {@link #allocate(long, int)}, defaults statsCount to 1.
 	 * @param size size of data (in bytes) to allocate
-	 * @return
-	 * @throws DMLRuntimeException
+	 * @return jcuda pointer
+	 * @throws DMLRuntimeException if DMLRuntimeException occurs
 	 */
 	public static Pointer allocate(long size) throws DMLRuntimeException {
 		return allocate(size, 1);

http://git-wip-us.apache.org/repos/asf/incubator-systemml/blob/13c0b06d/src/main/java/org/apache/sysml/runtime/transform/ApplyTfCSVSPARK.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/sysml/runtime/transform/ApplyTfCSVSPARK.java b/src/main/java/org/apache/sysml/runtime/transform/ApplyTfCSVSPARK.java
index c1d99e6..aefab6f 100644
--- a/src/main/java/org/apache/sysml/runtime/transform/ApplyTfCSVSPARK.java
+++ b/src/main/java/org/apache/sysml/runtime/transform/ApplyTfCSVSPARK.java
@@ -45,8 +45,22 @@ public class ApplyTfCSVSPARK {
 	/**
 	 * Apply transformation metadata and generate the result in CSV format, as a
 	 * JavaRDD of Strings.
+	 * 
+	 * @param sec spark execution context
+	 * @param inputRDD input rdd
+	 * @param tfMtdPath transform metadata path
+	 * @param spec transform specification as json string
+	 * @param tmpPath temporary file path
+	 * @param prop csv file format properties
+	 * @param numCols number of columns
+	 * @param headerLine header line
+	 * @return JavaPairRDD of long-strings
+	 * @throws IOException if IOException occurs
+	 * @throws ClassNotFoundException if ClassNotFoundException occurs
+	 * @throws InterruptedException if InterruptedException occurs
+	 * @throws IllegalArgumentException if IllegalArgumentException occurs
+	 * @throws JSONException if JSONException occurs
 	 */
-
 	public static JavaPairRDD<Long, String> runSparkJob(
 			SparkExecutionContext sec, JavaRDD<Tuple2<LongWritable, Text>> inputRDD, 
 			String tfMtdPath, String spec, String tmpPath, CSVFileFormatProperties prop, 

http://git-wip-us.apache.org/repos/asf/incubator-systemml/blob/13c0b06d/src/main/java/org/apache/sysml/runtime/transform/BinAgent.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/sysml/runtime/transform/BinAgent.java b/src/main/java/org/apache/sysml/runtime/transform/BinAgent.java
index 46090c0..72794dd 100644
--- a/src/main/java/org/apache/sysml/runtime/transform/BinAgent.java
+++ b/src/main/java/org/apache/sysml/runtime/transform/BinAgent.java
@@ -73,14 +73,7 @@ public class BinAgent extends Encoder
 	{
 		this(parsedSpec, colnames, clen, false);
 	}
-	
-	/**
-	 * 
-	 * @param parsedSpec
-	 * @param clen
-	 * @throws JSONException
-	 * @throws IOException 
-	 */
+
 	public BinAgent(JSONObject parsedSpec, String[] colnames, int clen, boolean colsOnly) 
 		throws JSONException, IOException 
 	{
@@ -157,9 +150,6 @@ public class BinAgent extends Encoder
 	/**
 	 * Method to output transformation metadata from the mappers. 
 	 * This information is collected and merged by the reducers.
-	 * 
-	 * @param out
-	 * @throws IOException
 	 */
 	@Override
 	public void mapOutputTransformationMetadata(OutputCollector<IntWritable, DistinctValue> out, int taskID, TfUtils agents) throws IOException {
@@ -209,10 +199,6 @@ public class BinAgent extends Encoder
 
 	/** 
 	 * Method to merge map output transformation metadata.
-	 * 
-	 * @param values
-	 * @return
-	 * @throws IOException 
 	 */
 	@Override
 	public void mergeAndOutputTransformationMetadata(Iterator<DistinctValue> values, String outputDir, int colID, FileSystem fs, TfUtils agents) throws IOException {
@@ -278,9 +264,6 @@ public class BinAgent extends Encoder
 
 	/**
 	 * Method to load transform metadata for all attributes
-	 * 
-	 * @param job
-	 * @throws IOException
 	 */
 	@Override
 	public void loadTxMtd(JobConf job, FileSystem fs, Path txMtdDir, TfUtils agents) throws IOException {
@@ -329,9 +312,6 @@ public class BinAgent extends Encoder
 	
 	/**
 	 * Method to apply transformations.
-	 * 
-	 * @param words
-	 * @return
 	 */
 	@Override
 	public String[] apply(String[] words) {

http://git-wip-us.apache.org/repos/asf/incubator-systemml/blob/13c0b06d/src/main/java/org/apache/sysml/runtime/transform/DataTransform.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/sysml/runtime/transform/DataTransform.java b/src/main/java/org/apache/sysml/runtime/transform/DataTransform.java
index c1e1702..6559309 100644
--- a/src/main/java/org/apache/sysml/runtime/transform/DataTransform.java
+++ b/src/main/java/org/apache/sysml/runtime/transform/DataTransform.java
@@ -90,11 +90,11 @@ public class DataTransform
 	/**
 	 * Method to read the header line from the input data file.
 	 * 
-	 * @param fs
-	 * @param prop
-	 * @param smallestFile
-	 * @return
-	 * @throws IOException
+	 * @param fs file system
+	 * @param prop csv file format properties
+	 * @param smallestFile file name
+	 * @return header line
+	 * @throws IOException if IOException occurs
 	 */
 	private static String readHeaderLine(FileSystem fs, CSVFileFormatProperties prop, String smallestFile) throws IOException {
 		String line = null;
@@ -125,13 +125,13 @@ public class DataTransform
 	 * corresponding column IDs. The mapping is used to prepare the
 	 * specification file in <code>processSpecFile()</code>.
 	 * 
-	 * @param fs
-	 * @param prop
-	 * @param headerLine
-	 * @param smallestFile
-	 * @return
-	 * @throws IllegalArgumentException
-	 * @throws IOException
+	 * @param fs file system
+	 * @param prop csv file format properties
+	 * @param headerLine header line
+	 * @param smallestFile file name
+	 * @return map of column names and their column IDs
+	 * @throws IllegalArgumentException if IllegalArgumentException occurs
+	 * @throws IOException if IOException occurs
 	 */
 	private static HashMap<String, Integer> processColumnNames(FileSystem fs, CSVFileFormatProperties prop, String headerLine, String smallestFile) throws IllegalArgumentException, IOException {
 		HashMap<String, Integer> colNames = new HashMap<String,Integer>();
@@ -150,10 +150,10 @@ public class DataTransform
 	 * In-place permutation of list, mthd, and cst arrays based on indices,
 	 * by navigating through cycles in the permutation. 
 	 * 
-	 * @param list
-	 * @param mthd
-	 * @param cst
-	 * @param indices
+	 * @param list ?
+	 * @param mthd ?
+	 * @param cst ?
+	 * @param indices ?
 	 */
 	private static void inplacePermute(int[] list, byte[] mthd, Object[] cst, Integer[] indices) 
 	{
@@ -193,16 +193,16 @@ public class DataTransform
 	 * specification with corresponding column Ids. This file is sent to all the
 	 * relevant MR jobs.
 	 * 
-	 * @param fs
-	 * @param inputPath
-	 * @param smallestFile
-	 * @param colNames
-	 * @param prop
-	 * @param specFileWithNames
-	 * @return
-	 * @throws IllegalArgumentException
-	 * @throws IOException
-	 * @throws JSONException 
+	 * @param fs file system
+	 * @param inputPath input file path
+	 * @param smallestFile file name
+	 * @param colNames column names
+	 * @param prop csv file format properties
+	 * @param specFileWithNames ?
+	 * @return specification as a JSONObject
+	 * @throws IllegalArgumentException if IllegalArgumentException occurs
+	 * @throws IOException if IOException occurs
+	 * @throws JSONException if JSONException occurs
 	 */
 	private static String processSpecFile(FileSystem fs, String inputPath, String smallestFile, HashMap<String,Integer> colNames, CSVFileFormatProperties prop, String specWithNames) throws IllegalArgumentException, IOException, JSONException {
 		JSONObject inputSpec = new JSONObject(specWithNames);
@@ -621,11 +621,11 @@ public class DataTransform
 	 * temporary location, then MR tasks fail due to changing timestamps on
 	 * txMtdPath.
 	 * 
-	 * @param fs
-	 * @param tmpPath
-	 * @param txMtdPath
-	 * @throws IllegalArgumentException
-	 * @throws IOException
+	 * @param fs file system
+	 * @param tmpPath temporary location (directory) of transformation metadata files
+	 * @param txMtdPath directory where to place transformation metadata files
+	 * @throws IllegalArgumentException if IllegalArgumentException occurs
+	 * @throws IOException if IOException occurs
 	 */
 	private static void moveFilesFromTmp(FileSystem fs, String tmpPath, String txMtdPath) throws IllegalArgumentException, IOException 
 	{
@@ -646,15 +646,15 @@ public class DataTransform
 	 * Helper function to determine the number of columns after applying
 	 * transformations. Note that dummycoding changes the number of columns.
 	 * 
-	 * @param fs
-	 * @param header
-	 * @param delim
-	 * @param tfMtdPath
-	 * @return
-	 * @throws IllegalArgumentException
-	 * @throws IOException
-	 * @throws DMLRuntimeException
-	 * @throws JSONException 
+	 * @param fs file system
+	 * @param header header line
+	 * @param delim delimiter
+	 * @param tfMtdPath transform metadata path
+	 * @return number of columns after applying transformations
+	 * @throws IllegalArgumentException if IllegalArgumentException occurs
+	 * @throws IOException if IOException occurs
+	 * @throws DMLRuntimeException if DMLRuntimeException occurs
+	 * @throws JSONException  if JSONException occurs
 	 */
 	private static int getNumColumnsTf(FileSystem fs, String header, String delim, String tfMtdPath) throws IllegalArgumentException, IOException, DMLRuntimeException, JSONException {
 		String[] columnNames = Pattern.compile(Pattern.quote(delim)).split(header, -1);
@@ -702,16 +702,16 @@ public class DataTransform
 	/**
 	 * Main method to create and/or apply transformation metdata using MapReduce.
 	 * 
-	 * @param jobinst
-	 * @param inputMatrices
-	 * @param shuffleInst
-	 * @param otherInst
-	 * @param resultIndices
-	 * @param outputMatrices
-	 * @param numReducers
-	 * @param replication
-	 * @return
-	 * @throws Exception
+	 * @param jobinst MR job instruction
+	 * @param inputs array of input matrices
+	 * @param shuffleInst shuffle instructions
+	 * @param otherInst other instructions
+	 * @param resultIndices byte array of result indices
+	 * @param outputs array of output matrices
+	 * @param numReducers number of reducers
+	 * @param replication ?
+	 * @return MR job result
+	 * @throws Exception if IOException occurs
 	 */
 	public static JobReturn mrDataTransform(MRJobInstruction jobinst, MatrixObject[] inputs, String shuffleInst, String otherInst, byte[] resultIndices, MatrixObject[] outputs, int numReducers, int replication) throws Exception {
 		
@@ -959,14 +959,14 @@ public class DataTransform
 	 * Main method to create and/or apply transformation metdata in-memory, on a
 	 * single node.
 	 * 
-	 * @param inst
-	 * @param inputMatrices
-	 * @param outputMatrices
-	 * @return
-	 * @throws IOException
-	 * @throws DMLRuntimeException 
-	 * @throws JSONException 
-	 * @throws IllegalArgumentException 
+	 * @param inst parameterized built-in CP instruction
+	 * @param inputs array of input data
+	 * @param outputs array of output matrices
+	 * @return MR job result
+	 * @throws IOException if IOException occurs
+	 * @throws DMLRuntimeException if DMLRuntimeException occurs
+	 * @throws IllegalArgumentException if IllegalArgumentException occurs
+	 * @throws JSONException if JSONException occurs
 	 */
 	public static JobReturn cpDataTransform(ParameterizedBuiltinCPInstruction inst, CacheableData<?>[] inputs, MatrixObject[] outputs) throws IOException, DMLRuntimeException, IllegalArgumentException, JSONException {
 		TransformOperands oprnds = new TransformOperands(inst.getParameterMap(), inputs[0]);
@@ -1043,11 +1043,11 @@ public class DataTransform
 	 * Helper function to fetch and sort the list of part files under the given
 	 * input directory.
 	 * 
-	 * @param input
-	 * @param fs
-	 * @return
-	 * @throws FileNotFoundException
-	 * @throws IOException
+	 * @param input input directory
+	 * @param fs file system
+	 * @return list of paths to input file parts
+	 * @throws FileNotFoundException if FileNotFoundException occurs
+	 * @throws IOException if IOException occurs
 	 */
 	@SuppressWarnings("unchecked")
 	private static ArrayList<Path> collectInputFiles(String input, FileSystem fs) throws FileNotFoundException, IOException 
@@ -1121,21 +1121,23 @@ public class DataTransform
 	/**
 	 * Main method to create and/or apply transformation metdata in-memory, on a single node.
 	 * 
-	 * @param job
-	 * @param fs
-	 * @param inputPath
-	 * @param ncols
-	 * @param prop
-	 * @param specFileWithIDs
-	 * @param tfMtdPath
-	 * @param applyTxPath
-	 * @param isApply
-	 * @param outputPath
-	 * @param headerLine
-	 * @throws IOException
-	 * @throws DMLRuntimeException 
-	 * @throws JSONException 
-	 * @throws IllegalArgumentException 
+	 * @param job job configuration
+	 * @param fs file system
+	 * @param inputPath path to input files
+	 * @param ncols number of columns
+	 * @param prop csv file format properties
+	 * @param specWithIDs JSON transform specification with IDs
+	 * @param tfMtdPath transform metadata path
+	 * @param isApply ?
+	 * @param result output matrix
+	 * @param headerLine header line
+	 * @param isBB true if binary block
+	 * @param isCSV true if CSV
+	 * @return MR job result
+	 * @throws IOException if IOException occurs
+	 * @throws DMLRuntimeException if DMLRuntimeException occurs
+	 * @throws IllegalArgumentException if IllegalArgumentException occurs
+	 * @throws JSONException if JSONException occurs
 	 */
 	private static JobReturn performTransform(JobConf job, FileSystem fs, String inputPath, int ncols, CSVFileFormatProperties prop, String specWithIDs, String tfMtdPath, boolean isApply, MatrixObject result, String headerLine, boolean isBB, boolean isCSV ) throws IOException, DMLRuntimeException, IllegalArgumentException, JSONException {
 		

http://git-wip-us.apache.org/repos/asf/incubator-systemml/blob/13c0b06d/src/main/java/org/apache/sysml/runtime/transform/DummycodeAgent.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/sysml/runtime/transform/DummycodeAgent.java b/src/main/java/org/apache/sysml/runtime/transform/DummycodeAgent.java
index e0b4826..c171489 100644
--- a/src/main/java/org/apache/sysml/runtime/transform/DummycodeAgent.java
+++ b/src/main/java/org/apache/sysml/runtime/transform/DummycodeAgent.java
@@ -81,10 +81,6 @@ public class DummycodeAgent extends Encoder
 	/**
 	 * Method to output transformation metadata from the mappers. 
 	 * This information is collected and merged by the reducers.
-	 * 
-	 * @param out
-	 * @throws IOException
-	 * 
 	 */
 	@Override
 	public void mapOutputTransformationMetadata(OutputCollector<IntWritable, DistinctValue> out, int taskID, TfUtils agents) throws IOException {
@@ -123,13 +119,12 @@ public class DummycodeAgent extends Encoder
 	 * Recoded columns are of type nominal, binner columns are of type ordinal, dummycoded columns are of type 
 	 * dummycoded, and the remaining are of type scale.
 	 * 
-	 * @param fs
-	 * @param txMtdDir
-	 * @param numCols
-	 * @param ra
-	 * @param ba
-	 * @return Number of columns in the transformed data
-	 * @throws IOException
+	 * @param fs file system
+	 * @param txMtdDir path to transform metadata directory
+	 * @param numCols number of columns
+	 * @param agents ?
+	 * @return ?
+	 * @throws IOException if IOException occurs
 	 */
 	public int genDcdMapsAndColTypes(FileSystem fs, String txMtdDir, int numCols, TfUtils agents) throws IOException {
 		
@@ -189,8 +184,8 @@ public class DummycodeAgent extends Encoder
 	/**
 	 * Given a dummycoded column id, find the corresponding original column ID.
 	 *  
-	 * @param colID
-	 * @return
+	 * @param colID dummycoded column ID
+	 * @return original column ID, -1 if not found
 	 */
 	public int mapDcdColumnID(int colID) 
 	{
@@ -394,8 +389,8 @@ public class DummycodeAgent extends Encoder
 	/**
 	 * Method to apply transformations.
 	 * 
-	 * @param words
-	 * @return
+	 * @param words array of strings
+	 * @return array of transformed strings
 	 */
 	@Override
 	public String[] apply(String[] words) 

http://git-wip-us.apache.org/repos/asf/incubator-systemml/blob/13c0b06d/src/main/java/org/apache/sysml/runtime/transform/GenTfMtdSPARK.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/sysml/runtime/transform/GenTfMtdSPARK.java b/src/main/java/org/apache/sysml/runtime/transform/GenTfMtdSPARK.java
index a56f6ef..3e57f08 100644
--- a/src/main/java/org/apache/sysml/runtime/transform/GenTfMtdSPARK.java
+++ b/src/main/java/org/apache/sysml/runtime/transform/GenTfMtdSPARK.java
@@ -51,6 +51,20 @@ public class GenTfMtdSPARK
 	 * Spark code to Generate Transform Metadata based on the given transformation
 	 * specification file (JSON format).
 	 * 
+	 * @param sec spark execution context
+	 * @param inputRDD input rdd
+	 * @param tfMtdPath transform metadata path
+	 * @param spec JSON transform specification
+	 * @param partOffsetsFile ?
+	 * @param prop csv file format properties
+	 * @param numCols number of columns
+	 * @param headerLine header line
+	 * @return number of rows
+	 * @throws IOException if IOException occurs
+	 * @throws ClassNotFoundException if ClassNotFoundException occurs
+	 * @throws InterruptedException if InterruptedException occurs
+	 * @throws IllegalArgumentException if IllegalArgumentException occurs
+	 * @throws JSONException if JSONException occurs
 	 */
 	public static long runSparkJob(SparkExecutionContext sec, JavaRDD<Tuple2<LongWritable, Text>> inputRDD, 
 									String tfMtdPath, String spec, String partOffsetsFile, 
@@ -213,12 +227,7 @@ public class GenTfMtdSPARK
 			return numRows;
 		}
 	}
-	
-	/**
-	 * 
-	 * @param in
-	 * @return
-	 */
+
 	public static List<Tuple2<Integer,DistinctValue>> toTuple2List(List<Pair<Integer,DistinctValue>> in) {
 		ArrayList<Tuple2<Integer,DistinctValue>> ret = new ArrayList<Tuple2<Integer,DistinctValue>>();
 		for( Pair<Integer,DistinctValue> e : in )

http://git-wip-us.apache.org/repos/asf/incubator-systemml/blob/13c0b06d/src/main/java/org/apache/sysml/runtime/transform/MVImputeAgent.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/sysml/runtime/transform/MVImputeAgent.java b/src/main/java/org/apache/sysml/runtime/transform/MVImputeAgent.java
index 4ff93a5..1106099 100644
--- a/src/main/java/org/apache/sysml/runtime/transform/MVImputeAgent.java
+++ b/src/main/java/org/apache/sysml/runtime/transform/MVImputeAgent.java
@@ -229,12 +229,7 @@ public class MVImputeAgent extends Encoder
 			}
 		}
 	}
-	
-	/**
-	 * 
-	 * @param parsedSpec
-	 * @throws JSONException
-	 */
+
 	private void parseMethodsAndReplacments(JSONObject parsedSpec) throws JSONException {
 		JSONArray mvspec = (JSONArray) parsedSpec.get(TfUtils.TXMETHOD_IMPUTE);
 		_mvMethodList = new MVMethod[mvspec.size()];
@@ -447,9 +442,6 @@ public class MVImputeAgent extends Encoder
 	/**
 	 * Method to output transformation metadata from the mappers. 
 	 * This information is collected and merged by the reducers.
-	 * 
-	 * @param out
-	 * @throws IOException
 	 */
 	@Override
 	public void mapOutputTransformationMetadata(OutputCollector<IntWritable, DistinctValue> out, int taskID, TfUtils agents) throws IOException {
@@ -496,12 +488,11 @@ public class MVImputeAgent extends Encoder
 	 * Applicable when running on SPARK.
 	 * Helper function to output transformation metadata into shuffle.
 	 * 
-	 * @param iw
-	 * @param dv
-	 * @param list
-	 * @throws IOException
+	 * @param iw integer value
+	 * @param dv distinct value
+	 * @param list list of integer-distinct value pairs
+	 * @throws IOException if IOException occurs
 	 */
-	
 	private void addDV(Integer iw, DistinctValue dv, ArrayList<Pair<Integer, DistinctValue>> list) throws IOException {
 		if ( dv != null )	
 			list.add( new Pair<Integer, DistinctValue>(iw, dv) );	
@@ -638,11 +629,7 @@ public class MVImputeAgent extends Encoder
 	}
 	
 	/** 
-	 * Method to merge map output transformation metadata.
-	 * 
-	 * @param values
-	 * @return
-	 * @throws IOException 
+	 * Method to merge map output transformation metadata. 
 	 */
 	@Override
 	public void mergeAndOutputTransformationMetadata(Iterator<DistinctValue> values, String outputDir, int colID, FileSystem fs, TfUtils agents) throws IOException {
@@ -872,9 +859,6 @@ public class MVImputeAgent extends Encoder
 
 	/**
 	 * Method to load transform metadata for all attributes
-	 * 
-	 * @param job
-	 * @throws IOException
 	 */
 	@Override
 	public void loadTxMtd(JobConf job, FileSystem fs, Path tfMtdDir, TfUtils agents) throws IOException {
@@ -1027,12 +1011,7 @@ public class MVImputeAgent extends Encoder
 		}
 		return out;
 	}
-	
-	/**
-	 * 
-	 * @param meta
-	 * @param rcList
-	 */
+
 	public void initMetaData(FrameBlock meta) {
 		//init replacement lists, replace recoded values to
 		//apply mv imputation potentially after recoding
@@ -1050,11 +1029,7 @@ public class MVImputeAgent extends Encoder
 			}
 		}
 	}
-	
-	/**
-	 * 
-	 * @param rcList
-	 */
+
 	public void initRecodeIDList(List<Integer> rcList) {
 		_rcList = rcList;
 	}
@@ -1062,8 +1037,8 @@ public class MVImputeAgent extends Encoder
 	/**
 	 * Exposes the internal histogram after build.
 	 * 
-	 * @param colID
-	 * @return
+	 * @param colID column ID
+	 * @return histogram (map of string keys and long values)
 	 */
 	public HashMap<String,Long> getHistogram( int colID ) {
 		return _hist.get(colID);

http://git-wip-us.apache.org/repos/asf/incubator-systemml/blob/13c0b06d/src/main/java/org/apache/sysml/runtime/transform/RecodeAgent.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/sysml/runtime/transform/RecodeAgent.java b/src/main/java/org/apache/sysml/runtime/transform/RecodeAgent.java
index 25e7570..a9da1f2 100644
--- a/src/main/java/org/apache/sysml/runtime/transform/RecodeAgent.java
+++ b/src/main/java/org/apache/sysml/runtime/transform/RecodeAgent.java
@@ -145,9 +145,6 @@ public class RecodeAgent extends Encoder
 	/**
 	 * Method to output transformation metadata from the mappers. 
 	 * This information is collected and merged by the reducers.
-	 * 
-	 * @param out
-	 * @throws IOException
 	 */
 	@Override
 	public void mapOutputTransformationMetadata(OutputCollector<IntWritable, DistinctValue> out, int taskID, TfUtils agents) throws IOException {
@@ -202,12 +199,13 @@ public class RecodeAgent extends Encoder
 	 * - just mv imputed (w/ global_mode)	(write .impute)
 	 * - both recoded and mv imputed		(write .map, .ndistinct, .mode, .impute)
 	 * 
-	 * @param map
-	 * @param outputDir
-	 * @param colID
-	 * @param fs
-	 * @param mvagent
-	 * @throws IOException
+	 * @param map recode maps
+	 * @param outputDir output directory
+	 * @param colID column id
+	 * @param fs file system
+	 * @param agents ?
+	 * @param fromCP ?
+	 * @throws IOException if IOException occurs
 	 */
 	private void writeMetadata(HashMap<String,Long> map, String outputDir, int colID, FileSystem fs, TfUtils agents, boolean fromCP) throws IOException {
 		// output recode maps and mode
@@ -304,10 +302,6 @@ public class RecodeAgent extends Encoder
 	
 	/** 
 	 * Method to merge map output transformation metadata.
-	 * 
-	 * @param values
-	 * @return
-	 * @throws IOException 
 	 */
 	@Override
 	public void mergeAndOutputTransformationMetadata(Iterator<DistinctValue> values, String outputDir, int colID, FileSystem fs, TfUtils agents) throws IOException {
@@ -335,9 +329,6 @@ public class RecodeAgent extends Encoder
 	
 	/**
 	 * Method to load recode maps of all attributes, at once.
-	 * 
-	 * @param job
-	 * @throws IOException
 	 */
 	@Override
 	public void loadTxMtd(JobConf job, FileSystem fs, Path txMtdDir, TfUtils agents) throws IOException {
@@ -374,12 +365,6 @@ public class RecodeAgent extends Encoder
 		}
 	}	
 
-	/**
-	 * 
-	 * @param colID
-	 * @param key
-	 * @return
-	 */
 	private String lookupRCDMap(int colID, String key) {
 		if( _finalMaps!=null )
 			return _finalMaps.get(colID).get(key);
@@ -423,11 +408,7 @@ public class RecodeAgent extends Encoder
 			}
 		}
 	}
-	
-	/**
-	 * 
-	 * @param in
-	 */
+
 	public void buildPartial(FrameBlock in) {
 		if( !isApplicable() )
 			return;		
@@ -455,9 +436,6 @@ public class RecodeAgent extends Encoder
 	
 	/**
 	 * Method to apply transformations.
-	 * 
-	 * @param words
-	 * @return
 	 */
 	@Override
 	public String[] apply(String[] words) 
@@ -530,7 +508,7 @@ public class RecodeAgent extends Encoder
 	 * Construct the recodemaps from the given input frame for all 
 	 * columns registered for recode.
 	 * 
-	 * @param frame
+	 * @param meta frame block
 	 */
 	public void initMetaData( FrameBlock meta ) {
 		if( meta == null || meta.getNumRows()<=0 )

http://git-wip-us.apache.org/repos/asf/incubator-systemml/blob/13c0b06d/src/main/java/org/apache/sysml/runtime/transform/TfUtils.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/sysml/runtime/transform/TfUtils.java b/src/main/java/org/apache/sysml/runtime/transform/TfUtils.java
index 7a5da65..b5fd8e7 100644
--- a/src/main/java/org/apache/sysml/runtime/transform/TfUtils.java
+++ b/src/main/java/org/apache/sysml/runtime/transform/TfUtils.java
@@ -225,8 +225,8 @@ public class TfUtils implements Serializable{
 	/**
 	 * Prepare NA strings so that they can be sent to workers via JobConf.
 	 * A "dummy" string is added at the end to handle the case of empty strings.
-	 * @param na
-	 * @return
+	 * @param na NA string
+	 * @return NA string concatenated with NA string separator concatenated with "dummy"
 	 */
 	public static String prepNAStrings(String na) {
 		return na  + DataExpression.DELIM_NA_STRING_SEP + "dummy";
@@ -327,8 +327,9 @@ public class TfUtils implements Serializable{
 	/**
 	 * Function that checks if the given string is one of NA strings.
 	 * 
-	 * @param w
-	 * @return
+	 * @param NAstrings array of NA strings
+	 * @param w string to check
+	 * @return true if w is a NAstring
 	 */
 	public static boolean isNA(String[] NAstrings, String w) {
 		if(NAstrings == null)
@@ -353,9 +354,9 @@ public class TfUtils implements Serializable{
 	/**
 	 * Process a given row to construct transformation metadata.
 	 * 
-	 * @param line
-	 * @return
-	 * @throws IOException
+	 * @param line string to break into words
+	 * @return string array of words from the line
+	 * @throws IOException if IOException occurs
 	 */
 	public String[] prepareTfMtd(String line) throws IOException {
 		String[] words = getWords(line);
@@ -431,9 +432,8 @@ public class TfUtils implements Serializable{
 	/**
 	 * Function to apply transformation metadata on a given row.
 	 * 
-	 * @param words
-	 * @param optimizeMaps
-	 * @return
+	 * @param words string array of words
+	 * @return string array of transformed words
 	 */
 	public String[] apply( String[] words ) {
 		words = getMVImputeAgent().apply(words);
@@ -535,6 +535,10 @@ public class TfUtils implements Serializable{
 	 * counters/offsets file, which was generated from either GenTfMtdMR
 	 * or AssignRowIDMR job.
 	 * 
+	 * @param job job configuration
+	 * @param offset file offset
+	 * @return part file id (ie, 00001, 00002, etc)
+	 * @throws IOException if IOException occurs
 	 */
 	public String getPartFileID(JobConf job, long offset) throws IOException
 	{

http://git-wip-us.apache.org/repos/asf/incubator-systemml/blob/13c0b06d/src/main/java/org/apache/sysml/runtime/transform/decode/Decoder.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/sysml/runtime/transform/decode/Decoder.java b/src/main/java/org/apache/sysml/runtime/transform/decode/Decoder.java
index 618a04b..c9d8ab0 100644
--- a/src/main/java/org/apache/sysml/runtime/transform/decode/Decoder.java
+++ b/src/main/java/org/apache/sysml/runtime/transform/decode/Decoder.java
@@ -41,11 +41,7 @@ public abstract class Decoder implements Serializable
 		_schema = schema;
 		_colList = colList;
 	}
-	
-	/**
-	 * 
-	 * @return
-	 */
+
 	public ValueType[] getSchema() {
 		return _schema;
 	}
@@ -53,16 +49,12 @@ public abstract class Decoder implements Serializable
 	/**
 	 * Block decode API converting a matrix block into a frame block.
 	 * 
-	 * @param in
-	 * @param out
+	 * @param in input matrix block
+	 * @param out output frame block
 	 * 
 	 * @return returns given output frame block for convenience
 	 */
 	public abstract FrameBlock decode(MatrixBlock in, FrameBlock out);
-	
-	/**
-	 * 
-	 * @param meta
-	 */
+
 	public abstract void initMetaData(FrameBlock meta);
 }

http://git-wip-us.apache.org/repos/asf/incubator-systemml/blob/13c0b06d/src/main/java/org/apache/sysml/runtime/transform/decode/DecoderFactory.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/sysml/runtime/transform/decode/DecoderFactory.java b/src/main/java/org/apache/sysml/runtime/transform/decode/DecoderFactory.java
index 1e1dc6f..7d71006 100644
--- a/src/main/java/org/apache/sysml/runtime/transform/decode/DecoderFactory.java
+++ b/src/main/java/org/apache/sysml/runtime/transform/decode/DecoderFactory.java
@@ -36,14 +36,7 @@ import org.apache.wink.json4j.JSONObject;
 
 public class DecoderFactory 
 {
-	/**
-	 * 
-	 * @param spec
-	 * @param schema
-	 * @param meta
-	 * @return
-	 * @throws DMLRuntimeException
-	 */
+
 	@SuppressWarnings("unchecked")
 	public static Decoder createDecoder(String spec, String[] colnames, ValueType[] schema, FrameBlock meta) 
 		throws DMLRuntimeException 

http://git-wip-us.apache.org/repos/asf/incubator-systemml/blob/13c0b06d/src/main/java/org/apache/sysml/runtime/transform/decode/DecoderRecode.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/sysml/runtime/transform/decode/DecoderRecode.java b/src/main/java/org/apache/sysml/runtime/transform/decode/DecoderRecode.java
index 2586cb6..c53704b 100644
--- a/src/main/java/org/apache/sysml/runtime/transform/decode/DecoderRecode.java
+++ b/src/main/java/org/apache/sysml/runtime/transform/decode/DecoderRecode.java
@@ -91,11 +91,11 @@ public class DecoderRecode extends Decoder
 	}
 	
 	/**
-	 * Parses a line of <token, ID, count> into <token, ID> pairs, where 
+	 * Parses a line of &lt;token, ID, count&gt; into &lt;token, ID&gt; pairs, where 
 	 * quoted tokens (potentially including separators) are supported.
 	 * 
-	 * @param entry
-	 * @param pair
+	 * @param entry entry line (token, ID, count)
+	 * @param pair token-ID pair
 	 */
 	public static void parseRecodeMapEntry(String entry, Pair<String,String> pair) {
 		int ixq = entry.lastIndexOf('"');

http://git-wip-us.apache.org/repos/asf/incubator-systemml/blob/13c0b06d/src/main/java/org/apache/sysml/runtime/transform/encode/Encoder.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/sysml/runtime/transform/encode/Encoder.java b/src/main/java/org/apache/sysml/runtime/transform/encode/Encoder.java
index b5f81d0..a3f01a1 100644
--- a/src/main/java/org/apache/sysml/runtime/transform/encode/Encoder.java
+++ b/src/main/java/org/apache/sysml/runtime/transform/encode/Encoder.java
@@ -64,24 +64,14 @@ public abstract class Encoder implements Serializable
 	public int getNumCols() {
 		return _clen;
 	}
-	
-	
-	/**
-	 * 
-	 * @param attrs
-	 */
+
 	public int initColList(JSONArray attrs) {
 		_colList = new int[attrs.size()];
 		for(int i=0; i < _colList.length; i++) 
 			_colList[i] = UtilFunctions.toInt(attrs.get(i));	
 		return _colList.length;
 	}
-	
-	/**
-	 * 
-	 * @param attrs
-	 * @return
-	 */
+
 	public int initColList(int[] colList) {
 		_colList = colList;
 		return _colList.length;
@@ -91,7 +81,7 @@ public abstract class Encoder implements Serializable
 	 * Indicates if this encoder is applicable, i.e, if there is at 
 	 * least one column to encode. 
 	 * 
-	 * @return
+	 * @return true if at least one column to encode
 	 */
 	public boolean isApplicable()  {
 		return (_colList != null && _colList.length > 0);
@@ -101,6 +91,8 @@ public abstract class Encoder implements Serializable
 	 * Indicates if this encoder is applicable for the given column ID,
 	 * i.e., if it is subject to this transformation.
 	 * 
+	 * @param colID column ID
+	 * @return true if encoder is applicable for given column
 	 */
 	public int isApplicable(int colID) {
 		if(_colList == null)
@@ -112,9 +104,9 @@ public abstract class Encoder implements Serializable
 	/**
 	 * Block encode: build and apply (transform encode).
 	 * 
-	 * @param in
-	 * @param out
-	 * @return
+	 * @param in input frame block
+	 * @param out output matrix block
+	 * @return output matrix block
 	 */
 	public abstract MatrixBlock encode(FrameBlock in, MatrixBlock out);
 
@@ -122,7 +114,7 @@ public abstract class Encoder implements Serializable
 	 * Build the transform meta data for the given block input. This call modifies
 	 * and keeps meta data as encoder state.
 	 * 
-	 * @param in
+	 * @param in input frame block
 	 */
 	public abstract void build(FrameBlock in);
 	
@@ -130,9 +122,9 @@ public abstract class Encoder implements Serializable
 	 * Encode input data blockwise according to existing transform meta
 	 * data (transform apply).
 	 * 
-	 * @param in
-	 * @param out
-	 * @return
+	 * @param in input frame block
+	 * @param out output matrix block
+	 * @return output matrix block
 	 */
 	public abstract MatrixBlock apply(FrameBlock in, MatrixBlock out);
 	
@@ -141,22 +133,23 @@ public abstract class Encoder implements Serializable
 	 * data (transform apply).
 	 * TODO remove once file-based transform removed
 	 * 
-	 * @param in
-	 * @return
+	 * @param in input data as string array
+	 * @return encoded data as string array
 	 */
 	public abstract String[] apply(String[] in);
 
 	/**
 	 * Construct a frame block out of the transform meta data.
 	 * 
-	 * @return
+	 * @param out output frame block
+	 * @return output frame block?
 	 */
 	public abstract FrameBlock getMetaData(FrameBlock out);
 
 	/**
 	 * Sets up the required meta data for a subsequent call to apply.
 	 * 
-	 * @param meta
+	 * @param meta frame block
 	 */
 	public abstract void initMetaData(FrameBlock meta);
 	

http://git-wip-us.apache.org/repos/asf/incubator-systemml/blob/13c0b06d/src/main/java/org/apache/sysml/runtime/transform/encode/EncoderFactory.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/sysml/runtime/transform/encode/EncoderFactory.java b/src/main/java/org/apache/sysml/runtime/transform/encode/EncoderFactory.java
index b71f563..4474e40 100644
--- a/src/main/java/org/apache/sysml/runtime/transform/encode/EncoderFactory.java
+++ b/src/main/java/org/apache/sysml/runtime/transform/encode/EncoderFactory.java
@@ -40,39 +40,16 @@ import org.apache.wink.json4j.JSONObject;
 
 public class EncoderFactory 
 {
-	/**
-	 * 
-	 * @param spec
-	 * @param clen
-	 * @return
-	 * @throws DMLRuntimeException 
-	 */
+
 	public static Encoder createEncoder(String spec, String[] colnames, int clen, FrameBlock meta) throws DMLRuntimeException {
 		return createEncoder(spec, colnames, UtilFunctions.nCopies(clen, ValueType.STRING), meta);
 	}
-	
-	/**
-	 * 
-	 * @param spec
-	 * @param schema
-	 * @param clen
-	 * @param meta
-	 * @return
-	 * @throws DMLRuntimeException
-	 */
+
 	public static Encoder createEncoder(String spec, String[] colnames, ValueType[] schema, int clen, FrameBlock meta) throws DMLRuntimeException {
 		ValueType[] lschema = (schema==null) ? UtilFunctions.nCopies(clen, ValueType.STRING) : schema;
 		return createEncoder(spec, colnames, lschema, meta);
 	}
-	
-	
-	/**
-	 * 
-	 * @param spec
-	 * @param schema
-	 * @return
-	 * @throws DMLRuntimeException
-	 */
+
 	@SuppressWarnings("unchecked")
 	public static Encoder createEncoder(String spec,  String[] colnames, ValueType[] schema, FrameBlock meta) 
 		throws DMLRuntimeException 

http://git-wip-us.apache.org/repos/asf/incubator-systemml/blob/13c0b06d/src/main/java/org/apache/sysml/runtime/transform/meta/TfMetaUtils.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/sysml/runtime/transform/meta/TfMetaUtils.java b/src/main/java/org/apache/sysml/runtime/transform/meta/TfMetaUtils.java
index 80e7b23..9cc3df4 100644
--- a/src/main/java/org/apache/sysml/runtime/transform/meta/TfMetaUtils.java
+++ b/src/main/java/org/apache/sysml/runtime/transform/meta/TfMetaUtils.java
@@ -50,12 +50,7 @@ import org.apache.wink.json4j.JSONObject;
 
 public class TfMetaUtils 
 {
-	/**
-	 * 
-	 * @param spec
-	 * @return
-	 * @throws DMLRuntimeException
-	 */
+
 	public static boolean isIDSpecification(String spec) throws DMLRuntimeException {
 		try {
 			JSONObject jSpec = new JSONObject(spec);
@@ -65,26 +60,11 @@ public class TfMetaUtils
 			throw new DMLRuntimeException(ex);
 		}
 	}
-	
-	/**
-	 * 
-	 * @param spec
-	 * @param colnames
-	 * @return
-	 * @throws DMLRuntimeException
-	 */
+
 	public static boolean containsOmitSpec(String spec, String[] colnames) throws DMLRuntimeException {
 		return (TfMetaUtils.parseJsonIDList(spec, colnames, TfUtils.TXMETHOD_OMIT).length > 0);	
 	}
-	
-	/**
-	 * 
-	 * @param spec
-	 * @param colnames
-	 * @param group
-	 * @return
-	 * @throws DMLRuntimeException
-	 */
+
 	public static int[] parseJsonIDList(String spec, String[] colnames, String group) 
 		throws DMLRuntimeException 
 	{
@@ -100,11 +80,11 @@ public class TfMetaUtils
 	/**
 	 * TODO consolidate external and internal json spec definitions
 	 * 
-	 * @param spec
-	 * @param colnames
-	 * @param group
-	 * @return
-	 * @throws JSONException
+	 * @param spec transform specification as json string
+	 * @param colnames column names
+	 * @param group ?
+	 * @return list of column ids
+	 * @throws JSONException if JSONException occurs
 	 */
 	public static int[] parseJsonIDList(JSONObject spec, String[] colnames, String group) 
 		throws JSONException
@@ -139,14 +119,7 @@ public class TfMetaUtils
 		
 		return colList;
 	}
-	
-	/**
-	 * 
-	 * @param spec
-	 * @param group
-	 * @return
-	 * @throws JSONException
-	 */
+
 	public static int[] parseJsonObjectIDList(JSONObject spec, String[] colnames, String group) 
 		throws JSONException
 	{
@@ -181,8 +154,8 @@ public class TfMetaUtils
 	 * @param spec      transform specification as json string
 	 * @param metapath  hdfs file path to meta data directory
 	 * @param colDelim  separator for processing column names in the meta data file 'column.names'
-	 * @return FrameBlock object representing transform metadata
-	 * @throws IOException
+	 * @return frame block
+	 * @throws IOException if IOException occurs
 	 */
 	public static FrameBlock readTransformMetaDataFromFile(String spec, String metapath, String colDelim) 
 		throws IOException 
@@ -235,8 +208,8 @@ public class TfMetaUtils
 	 * @param spec      transform specification as json string
 	 * @param metapath  resource path to meta data directory
 	 * @param colDelim  separator for processing column names in the meta data file 'column.names'
-	 * @return FrameBlock object representing transform metadata
-	 * @throws IOException
+	 * @return frame block
+	 * @throws IOException if IOException occurs
 	 */
 	public static FrameBlock readTransformMetaDataFromPath(String spec, String metapath, String colDelim) 
 		throws IOException 
@@ -286,12 +259,14 @@ public class TfMetaUtils
 	/**
 	 * Converts transform meta data into an in-memory FrameBlock object.
 	 * 
-	 * @param rows
-	 * @param recodeIDs
-	 * @param colnames
-	 * @param meta
-	 * @return
-	 * @throws IOException
+	 * @param rows number of rows
+	 * @param colnames column names
+	 * @param rcIDs recode IDs
+	 * @param binIDs binning IDs
+	 * @param meta ?
+	 * @param mvmeta ?
+	 * @return frame block
+	 * @throws IOException if IOException occurs
 	 */
 	private static FrameBlock convertToTransformMetaDataFrame(int rows, String[] colnames, List<Integer> rcIDs, List<Integer> binIDs, 
 			HashMap<String,String> meta, HashMap<String,String> mvmeta) 
@@ -354,10 +329,10 @@ public class TfMetaUtils
 	 * Parses the given json specification and extracts a list of column ids
 	 * that are subject to recoding.
 	 * 
-	 * @param spec
-	 * @param coltypes
-	 * @return
-	 * @throws IOException
+	 * @param spec transform specification as json string
+	 * @param colnames column names
+	 * @return list of column ids
+	 * @throws IOException if IOException occurs
 	 */
 	@SuppressWarnings("unchecked")
 	private static List<Integer> parseRecodeColIDs(String spec, String[] colnames) 
@@ -383,13 +358,7 @@ public class TfMetaUtils
 		
 		return specRecodeIDs;
 	}
-	
-	/**
-	 * 
-	 * @param spec
-	 * @return
-	 * @throws IOException
-	 */
+
 	public static List<Integer> parseBinningColIDs(String spec, String[] colnames) 
 		throws IOException 
 	{
@@ -401,13 +370,7 @@ public class TfMetaUtils
 			throw new IOException(ex);
 		}
 	}
-	
-	/**
-	 * 
-	 * @param jSpec
-	 * @return
-	 * @throws IOException
-	 */
+
 	public static List<Integer> parseBinningColIDs(JSONObject jSpec, String[] colnames) 
 		throws IOException 
 	{

http://git-wip-us.apache.org/repos/asf/incubator-systemml/blob/13c0b06d/src/main/java/org/apache/sysml/runtime/transform/meta/TfOffsetMap.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/sysml/runtime/transform/meta/TfOffsetMap.java b/src/main/java/org/apache/sysml/runtime/transform/meta/TfOffsetMap.java
index a17287f..a486697 100644
--- a/src/main/java/org/apache/sysml/runtime/transform/meta/TfOffsetMap.java
+++ b/src/main/java/org/apache/sysml/runtime/transform/meta/TfOffsetMap.java
@@ -27,9 +27,6 @@ import java.util.TreeMap;
 
 import org.apache.sysml.runtime.matrix.data.Pair;
 
-/**
- * 
- */
 public class TfOffsetMap implements Serializable
 {
 	private static final long serialVersionUID = 8949124761287236703L;
@@ -53,19 +50,10 @@ public class TfOffsetMap implements Serializable
 		_rmRows = shift;
 	}
 
-	/**
-	 * 
-	 * @param oldKey
-	 * @return
-	 */
 	public long getOffset(long oldKey) {
 		return _map.get(oldKey);
 	}	
-	
-	/**
-	 * 
-	 * @return
-	 */
+
 	public long getNumRmRows() {
 		return _rmRows;
 	}

http://git-wip-us.apache.org/repos/asf/incubator-systemml/blob/13c0b06d/src/main/java/org/apache/sysml/runtime/util/DataConverter.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/sysml/runtime/util/DataConverter.java b/src/main/java/org/apache/sysml/runtime/util/DataConverter.java
index 51d4d65..d4348b7 100644
--- a/src/main/java/org/apache/sysml/runtime/util/DataConverter.java
+++ b/src/main/java/org/apache/sysml/runtime/util/DataConverter.java
@@ -62,34 +62,13 @@ public class DataConverter
 	// READING and WRITING of matrix blocks to/from HDFS
 	// (textcell, binarycell, binaryblock)
 	///////
-	
-	/**
-	 * 
-	 * @param mat
-	 * @param dir
-	 * @param outputinfo
-	 * @param rlen
-	 * @param clen
-	 * @param brlen
-	 * @param bclen
-	 * @throws IOException
-	 */
+
 	public static void writeMatrixToHDFS(MatrixBlock mat, String dir, OutputInfo outputinfo,  MatrixCharacteristics mc )
 		throws IOException
 	{
 		writeMatrixToHDFS(mat, dir, outputinfo, mc, -1, null);
 	}
-	
-	/**
-	 * 
-	 * @param mat
-	 * @param dir
-	 * @param outputinfo
-	 * @param mc
-	 * @param replication
-	 * @param formatProperties
-	 * @throws IOException
-	 */
+
 	public static void writeMatrixToHDFS(MatrixBlock mat, String dir, OutputInfo outputinfo, MatrixCharacteristics mc, int replication, FileFormatProperties formatProperties)
 		throws IOException
 	{
@@ -102,18 +81,7 @@ public class DataConverter
 			throw new IOException(e);
 		}
 	}
-	
-	/**
-	 * 
-	 * @param dir
-	 * @param inputinfo
-	 * @param rlen
-	 * @param clen
-	 * @param brlen
-	 * @param bclen
-	 * @return
-	 * @throws IOException
-	 */
+
 	public static MatrixBlock readMatrixFromHDFS(String dir, InputInfo inputinfo, long rlen, long clen, int brlen, int bclen, boolean localFS) 
 		throws IOException
 	{	
@@ -130,18 +98,7 @@ public class DataConverter
 		//expected matrix is sparse (default SystemML usecase)
 		return readMatrixFromHDFS(prop);
 	}
-	
-	/**
-	 * 
-	 * @param dir
-	 * @param inputinfo
-	 * @param rlen
-	 * @param clen
-	 * @param brlen
-	 * @param bclen
-	 * @return
-	 * @throws IOException
-	 */
+
 	public static MatrixBlock readMatrixFromHDFS(String dir, InputInfo inputinfo, long rlen, long clen, int brlen, int bclen) 
 		throws IOException
 	{	
@@ -158,18 +115,6 @@ public class DataConverter
 		return readMatrixFromHDFS(prop);
 	}
 
-	/**
-	 * 
-	 * @param dir
-	 * @param inputinfo
-	 * @param rlen
-	 * @param clen
-	 * @param brlen
-	 * @param bclen
-	 * @param expectedSparsity
-	 * @return
-	 * @throws IOException
-	 */
 	public static MatrixBlock readMatrixFromHDFS(String dir, InputInfo inputinfo, long rlen, long clen, int brlen, int bclen, double expectedSparsity) 
 		throws IOException
 	{	
@@ -186,19 +131,6 @@ public class DataConverter
 		return readMatrixFromHDFS(prop);
 	}
 
-	/**
-	 * 
-	 * @param dir
-	 * @param inputinfo
-	 * @param rlen
-	 * @param clen
-	 * @param brlen
-	 * @param bclen
-	 * @param expectedSparsity
-	 * @param localFS
-	 * @return
-	 * @throws IOException
-	 */
 	public static MatrixBlock readMatrixFromHDFS(String dir, InputInfo inputinfo, long rlen, long clen, 
 			int brlen, int bclen, double expectedSparsity, boolean localFS) 
 		throws IOException
@@ -216,20 +148,7 @@ public class DataConverter
 		
 		return readMatrixFromHDFS(prop);
 	}
-	
-	/**
-	 * 
-	 * @param dir
-	 * @param inputinfo
-	 * @param rlen
-	 * @param clen
-	 * @param brlen
-	 * @param bclen
-	 * @param expectedSparsity
-	 * @param localFS
-	 * @return
-	 * @throws IOException
-	 */
+
 	public static MatrixBlock readMatrixFromHDFS(String dir, InputInfo inputinfo, long rlen, long clen, 
 			int brlen, int bclen, double expectedSparsity, FileFormatProperties formatProperties) 
 	throws IOException
@@ -259,22 +178,16 @@ public class DataConverter
 	 * DENSE MxN input:
 	 *  * best/average/worst: O(M*N)
 	 * SPARSE MxN input
-	 *  * best (ordered, or binary block w/ clen<=bclen): O(M*N)
+	 *  * best (ordered, or binary block w/ clen&lt;=bclen): O(M*N)
 	 *  * average (unordered): O(M*N*log(N))
 	 *  * worst (descending order per row): O(M * N^2)
 	 * 
 	 * NOTE: providing an exact estimate of 'expected sparsity' can prevent a full copy of the result
-	 * matrix block (required for changing sparse->dense, or vice versa)
+	 * matrix block (required for changing sparse-&gt;dense, or vice versa)
 	 * 
-	 * @param dir
-	 * @param inputinfo
-	 * @param rlen
-	 * @param clen
-	 * @param brlen
-	 * @param bclen
-	 * @param expectedSparsity
-	 * @return
-	 * @throws IOException
+	 * @param prop read properties
+	 * @return matrix block
+	 * @throws IOException if IOException occurs
 	 */
 	public static MatrixBlock readMatrixFromHDFS(ReadProperties prop) 
 		throws IOException
@@ -307,8 +220,8 @@ public class DataConverter
 	/**
 	 * Creates a two-dimensional double matrix of the input matrix block. 
 	 * 
-	 * @param mb
-	 * @return
+	 * @param mb matrix block
+	 * @return 2d double array
 	 */
 	public static double[][] convertToDoubleMatrix( MatrixBlock mb )
 	{
@@ -336,12 +249,7 @@ public class DataConverter
 		
 		return ret;
 	}
-	
-	/**
-	 * 
-	 * @param mb
-	 * @return
-	 */
+
 	public static boolean [] convertToBooleanVector(MatrixBlock mb)
 	{
 		int rows = mb.getNumRows();
@@ -368,13 +276,7 @@ public class DataConverter
 		
 		return ret;
 	}
-	
-	
-	/**
-	 * 
-	 * @param mb
-	 * @return
-	 */
+
 	public static int[] convertToIntVector( MatrixBlock mb)
 	{
 		int rows = mb.getNumRows();
@@ -403,12 +305,7 @@ public class DataConverter
 		
 		return ret;
 	}
-	
-	/**
-	 * 
-	 * @param mb
-	 * @return
-	 */
+
 	public static double[] convertToDoubleVector( MatrixBlock mb )
 	{
 		int rows = mb.getNumRows();
@@ -434,12 +331,7 @@ public class DataConverter
 		
 		return ret;
 	}
-	
-	/**
-	 * 
-	 * @param mb
-	 * @return
-	 */
+
 	public static List<Double> convertToDoubleList( MatrixBlock mb )
 	{
 		int rows = mb.getNumRows();
@@ -470,9 +362,9 @@ public class DataConverter
 	/**
 	 * Creates a dense Matrix Block and copies the given double matrix into it.
 	 * 
-	 * @param data
-	 * @return
-	 * @throws DMLRuntimeException 
+	 * @param data 2d double array
+	 * @return matrix block
+	 * @throws DMLRuntimeException if DMLRuntimeException occurs
 	 */
 	public static MatrixBlock convertToMatrixBlock( double[][] data ) 
 		throws DMLRuntimeException
@@ -496,9 +388,10 @@ public class DataConverter
 	/**
 	 * Creates a dense Matrix Block and copies the given double vector into it.
 	 * 
-	 * @param data
-	 * @return
-	 * @throws DMLRuntimeException 
+	 * @param data double array
+	 * @param columnVector if true, create matrix with single column. if false, create matrix with single row
+	 * @return matrix block
+	 * @throws DMLRuntimeException if DMLRuntimeException occurs
 	 */
 	public static MatrixBlock convertToMatrixBlock( double[] data, boolean columnVector ) 
 		throws DMLRuntimeException
@@ -520,11 +413,6 @@ public class DataConverter
 		return mb;
 	}
 
-	/**
-	 * 
-	 * @param map
-	 * @return
-	 */
 	public static MatrixBlock convertToMatrixBlock( HashMap<MatrixIndexes,Double> map )
 	{
 		// compute dimensions from the map
@@ -541,8 +429,10 @@ public class DataConverter
 	/**
 	 * NOTE: this method also ensures the specified matrix dimensions
 	 * 
-	 * @param map
-	 * @return
+	 * @param map map of matrix index keys and double values
+	 * @param rlen number of rows
+	 * @param clen number of columns
+	 * @return matrix block
 	 */
 	public static MatrixBlock convertToMatrixBlock( HashMap<MatrixIndexes,Double> map, int rlen, int clen )
 	{
@@ -584,11 +474,6 @@ public class DataConverter
 		return mb;
 	}
 
-	/**
-	 * 
-	 * @param map
-	 * @return
-	 */
 	public static MatrixBlock convertToMatrixBlock( CTableMap map )
 	{
 		// compute dimensions from the map
@@ -602,8 +487,10 @@ public class DataConverter
 	/**
 	 * NOTE: this method also ensures the specified matrix dimensions
 	 * 
-	 * @param map
-	 * @return
+	 * @param map ?
+	 * @param rlen number of rows
+	 * @param clen number of columns
+	 * @return matrix block
 	 */
 	public static MatrixBlock convertToMatrixBlock( CTableMap map, int rlen, int clen )
 	{
@@ -616,9 +503,9 @@ public class DataConverter
 	 * effort conversion of non-double types which might result in errors 
 	 * for non-numerical data.
 	 * 
-	 * @param frame
-	 * @return
-	 * @throws DMLRuntimeException 
+	 * @param frame frame block
+	 * @return matrix block
+	 * @throws DMLRuntimeException if DMLRuntimeException occurs
 	 */
 	public static MatrixBlock convertToMatrixBlock(FrameBlock frame) 
 		throws DMLRuntimeException
@@ -667,9 +554,9 @@ public class DataConverter
 	 * Converts a frame block with arbitrary schema into a two dimensional
 	 * string array. 
 	 * 
-	 * @param frame
-	 * @return
-	 * @throws DMLRuntimeException
+	 * @param frame frame block
+	 * @return 2d string array
+	 * @throws DMLRuntimeException if DMLRuntimeException occurs
 	 */
 	public static String[][] convertToStringFrame(FrameBlock frame) 
 		throws DMLRuntimeException
@@ -689,8 +576,8 @@ public class DataConverter
 	 * value type string. If the given array is null or of length 0, 
 	 * we return an empty frame block.
 	 * 
-	 * @param data
-	 * @return
+	 * @param data 2d string array
+	 * @return frame block
 	 */
 	public static FrameBlock convertToFrameBlock(String[][] data) {
 		//check for empty frame block 
@@ -701,13 +588,7 @@ public class DataConverter
 		ValueType[] schema = UtilFunctions.nCopies(data[0].length, ValueType.STRING);
 		return convertToFrameBlock(data, schema);
 	}
-	
-	/**
-	 * 
-	 * @param data
-	 * @param schema
-	 * @return
-	 */
+
 	public static FrameBlock convertToFrameBlock(String[][] data, ValueType[] schema) {
 		//check for empty frame block 
 		if( data == null || data.length==0 )
@@ -716,14 +597,7 @@ public class DataConverter
 		//create frame block
 		return new FrameBlock(schema, data);
 	}
-	
-	/**
-	 * 
-	 * @param data
-	 * @param schema
-	 * @param colnames
-	 * @return
-	 */
+
 	public static FrameBlock convertToFrameBlock(String[][] data, ValueType[] schema, String[] colnames) {
 		//check for empty frame block 
 		if( data == null || data.length==0 )
@@ -736,8 +610,8 @@ public class DataConverter
 	/**
 	 * Converts a matrix block into a frame block of value type double.
 	 * 
-	 * @param mb
-	 * @return
+	 * @param mb matrix block
+	 * @return frame block of type double
 	 */
 	public static FrameBlock convertToFrameBlock(MatrixBlock mb) {
 		return convertToFrameBlock(mb, ValueType.DOUBLE);
@@ -746,22 +620,16 @@ public class DataConverter
 	/**
 	 * Converts a matrix block into a frame block of a given value type.
 	 * 
-	 * @param mb
-	 * @param vt
-	 * @return
+	 * @param mb matrix block
+	 * @param vt value type
+	 * @return frame block
 	 */
 	public static FrameBlock convertToFrameBlock(MatrixBlock mb, ValueType vt) {
 		//create schema and frame block
 		ValueType[] schema = UtilFunctions.nCopies(mb.getNumColumns(), vt);
 		return convertToFrameBlock(mb, schema);
 	}
-	
-	/**
-	 * 
-	 * @param mb
-	 * @param schema
-	 * @return
-	 */
+
 	public static FrameBlock convertToFrameBlock(MatrixBlock mb, ValueType[] schema)
 	{
 		FrameBlock frame = new FrameBlock(schema);
@@ -823,14 +691,7 @@ public class DataConverter
 		
 		return frame;
 	}
-	
-	/**
-	 * 
-	 * @param mb
-	 * @param colwise
-	 * @return
-	 * @throws DMLRuntimeException 
-	 */
+
 	public static MatrixBlock[] convertToMatrixBlockPartitions( MatrixBlock mb, boolean colwise ) 
 		throws DMLRuntimeException
 	{
@@ -885,10 +746,9 @@ public class DataConverter
 	 * Helper method that converts SystemML matrix variable (<code>varname</code>) into a Array2DRowRealMatrix format,
 	 * which is useful in invoking Apache CommonsMath.
 	 * 
-	 * @param ec
-	 * @param varname
-	 * @return
-	 * @throws DMLRuntimeException
+	 * @param mo matrix object
+	 * @return matrix as a commons-math3 Array2DRowRealMatrix
+	 * @throws DMLRuntimeException if DMLRuntimeException occurs
 	 */
 	public static Array2DRowRealMatrix convertToArray2DRowRealMatrix(MatrixObject mo) 
 		throws DMLRuntimeException 
@@ -898,13 +758,7 @@ public class DataConverter
 		mo.release();		
 		return new Array2DRowRealMatrix(data, false);
 	}
-	
-	/**
-	 * 
-	 * @param mb
-	 * @param dest
-	 * @param destPos
-	 */
+
 	public static void copyToDoubleVector( MatrixBlock mb, double[] dest, int destPos )
 	{
 		if( mb.isEmptyBlock(false) )
@@ -925,19 +779,14 @@ public class DataConverter
 			System.arraycopy(mb.getDenseBlock(), 0, dest, destPos, rows*cols);
 		}
 	}
-	
-	/**
-	 * 
-	 * @param mb
-	 * @return
-	 */
+
 	public static String toString(MatrixBlock mb) {
 		return toString(mb, false, " ", "\n", mb.getNumRows(), mb.getNumColumns(), 3);
 	}
 	
 	/**
 	 * Returns a string representation of a matrix
-	 * @param mb
+	 * @param mb matrix block
 	 * @param sparse if true, string will contain a table with row index, col index, value (where value != 0.0)
 	 * 				 otherwise it will be a rectangular string with all values of the matrix block
 	 * @param separator Separator string between each element in a row, or between the columns in sparse format
@@ -945,7 +794,7 @@ public class DataConverter
 	 * @param rowsToPrint maximum number of rows to print, -1 for all
 	 * @param colsToPrint maximum number of columns to print, -1 for all
 	 * @param decimal number of decimal places to print, -1 for default
-	 * @return
+	 * @return matrix as a string
 	 */
 	public static String toString(MatrixBlock mb, boolean sparse, String separator, String lineseparator, int rowsToPrint, int colsToPrint, int decimal){
 		StringBuffer sb = new StringBuffer();
@@ -1007,27 +856,11 @@ public class DataConverter
 		
 		return sb.toString();
 	}
-	
-	/**
-	 * 
-	 * @param fb
-	 * @return
-	 */
+
 	public static String toString(FrameBlock fb) {
 		return toString(fb, false, " ", "\n", fb.getNumRows(), fb.getNumColumns(), 3);
 	}
-	
-	/**
-	 * 
-	 * @param fb
-	 * @param sparse
-	 * @param separator
-	 * @param lineseparator
-	 * @param rowsToPrint
-	 * @param colsToPrint
-	 * @param decimal
-	 * @return
-	 */
+
 	public static String toString(FrameBlock fb, boolean sparse, String separator, String lineseparator, int rowsToPrint, int colsToPrint, int decimal)
 	{
 		StringBuffer sb = new StringBuffer();

http://git-wip-us.apache.org/repos/asf/incubator-systemml/blob/13c0b06d/src/main/java/org/apache/sysml/runtime/util/FastBufferedDataInputStream.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/sysml/runtime/util/FastBufferedDataInputStream.java b/src/main/java/org/apache/sysml/runtime/util/FastBufferedDataInputStream.java
index 74641bd..932ceb1 100644
--- a/src/main/java/org/apache/sysml/runtime/util/FastBufferedDataInputStream.java
+++ b/src/main/java/org/apache/sysml/runtime/util/FastBufferedDataInputStream.java
@@ -28,10 +28,6 @@ import java.io.InputStream;
 import org.apache.sysml.runtime.matrix.data.MatrixBlockDataInput;
 import org.apache.sysml.runtime.matrix.data.SparseBlock;
 
-/**
- * 
- * 
- */
 public class FastBufferedDataInputStream extends FilterInputStream implements DataInput, MatrixBlockDataInput
 {
 	
@@ -251,13 +247,7 @@ public class FastBufferedDataInputStream extends FilterInputStream implements Da
 		
 		return nnz;
 	}
-	
-	/**
-	 * 
-	 * @param a
-	 * @param off
-	 * @return
-	 */
+
 	private static int baToInt( byte[] ba, final int off )
 	{
 		//shift and add 4 bytes into single int
@@ -266,13 +256,7 @@ public class FastBufferedDataInputStream extends FilterInputStream implements Da
 			   ((ba[off+2] & 0xFF) <<  8) +
 			   ((ba[off+3] & 0xFF) <<  0);
 	}
-	
-	/**
-	 * 
-	 * @param a
-	 * @param off
-	 * @return
-	 */
+
 	private static long baToLong( byte[] ba, final int off )
 	{
 		//shift and add 8 bytes into single long

http://git-wip-us.apache.org/repos/asf/incubator-systemml/blob/13c0b06d/src/main/java/org/apache/sysml/runtime/util/FastBufferedDataOutputStream.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/sysml/runtime/util/FastBufferedDataOutputStream.java b/src/main/java/org/apache/sysml/runtime/util/FastBufferedDataOutputStream.java
index b19eee2..9130e15 100644
--- a/src/main/java/org/apache/sysml/runtime/util/FastBufferedDataOutputStream.java
+++ b/src/main/java/org/apache/sysml/runtime/util/FastBufferedDataOutputStream.java
@@ -319,26 +319,14 @@ public class FastBufferedDataOutputStream extends FilterOutputStream implements
 		for( int i=lrlen; i<rlen; i++ )
 			writeInt( 0 );
 	}
-	
-	/**
-	 * 
-	 * @param val
-	 * @param ba
-	 * @param off
-	 */
+
 	private static void shortToBa( final int val, byte[] ba, final int off )
 	{
 		//shift and mask out 2 bytes
 		ba[ off+0 ] = (byte)((val >>>  8) & 0xFF);
 		ba[ off+1 ] = (byte)((val >>>  0) & 0xFF);
 	}
-	
-	/**
-	 * 
-	 * @param val
-	 * @param ba
-	 * @param off
-	 */
+
 	private static void intToBa( final int val, byte[] ba, final int off )
 	{
 		//shift and mask out 4 bytes
@@ -347,13 +335,7 @@ public class FastBufferedDataOutputStream extends FilterOutputStream implements
 		ba[ off+2 ] = (byte)((val >>>  8) & 0xFF);
 		ba[ off+3 ] = (byte)((val >>>  0) & 0xFF);
 	}
-	
-	/**
-	 * 
-	 * @param val
-	 * @param ba
-	 * @param off
-	 */
+
 	private static void longToBa( final long val, byte[] ba, final int off )
 	{
 		//shift and mask out 8 bytes

http://git-wip-us.apache.org/repos/asf/incubator-systemml/blob/13c0b06d/src/main/java/org/apache/sysml/runtime/util/FastStringTokenizer.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/sysml/runtime/util/FastStringTokenizer.java b/src/main/java/org/apache/sysml/runtime/util/FastStringTokenizer.java
index 0648474..2320fa1 100644
--- a/src/main/java/org/apache/sysml/runtime/util/FastStringTokenizer.java
+++ b/src/main/java/org/apache/sysml/runtime/util/FastStringTokenizer.java
@@ -37,12 +37,10 @@ public class FastStringTokenizer implements Serializable
 
     /**
      * Constructs a new StringTokenizer for string using the specified
-     * delimiters, returnDelimiters is false.
+     * delimiter
      * 
-     * @param string
-     *            the string to be tokenized
-     * @param delimiters
-     *            the delimiters to use
+     * @param delimiter
+     *            the delimiter to use
      */
     public FastStringTokenizer(char delimiter) 
     {
@@ -50,10 +48,6 @@ public class FastStringTokenizer implements Serializable
         reset( null );
     }
 
-    /**
-     * 
-     * @param string
-     */
     public void reset( String string )
     {
     	_string = string;
@@ -64,8 +58,6 @@ public class FastStringTokenizer implements Serializable
      * Returns the next token in the string as a String.
      * 
      * @return next token in the string as a String
-     * @exception NoSuchElementException
-     *                if no tokens remain
      */
     public String nextToken() 
     {

http://git-wip-us.apache.org/repos/asf/incubator-systemml/blob/13c0b06d/src/main/java/org/apache/sysml/runtime/util/LocalFileUtils.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/sysml/runtime/util/LocalFileUtils.java b/src/main/java/org/apache/sysml/runtime/util/LocalFileUtils.java
index f024601..ffaf613 100644
--- a/src/main/java/org/apache/sysml/runtime/util/LocalFileUtils.java
+++ b/src/main/java/org/apache/sysml/runtime/util/LocalFileUtils.java
@@ -68,27 +68,55 @@ public class LocalFileUtils
 		_seq = new IDSequence();
 	}
 	
-	/** Reads a matrix block from local file system. */
+	/** Reads a matrix block from local file system.
+	 * 
+	 * @param filePathAndName file to read
+	 * @return matrix block
+	 * @throws IOException if IOException occurs
+	 */
 	public static MatrixBlock readMatrixBlockFromLocal(String filePathAndName) throws IOException {
 		return (MatrixBlock) readWritableFromLocal(filePathAndName, new MatrixBlock());
 	}
 	
-	/** Reads a matrix block from local file system. */
+	/** Reads a matrix block from local file system.
+	 * 
+	 * @param filePathAndName file to read
+	 * @param reuse matrix block to reuse
+	 * @return matrix block
+	 * @throws IOException if IOException occurs
+	 */
 	public static MatrixBlock readMatrixBlockFromLocal(String filePathAndName, MatrixBlock reuse) throws IOException {
 		return (MatrixBlock) readWritableFromLocal(filePathAndName, reuse);
 	}
 	
-	/** Reads a frame block from local file system. */
+	/** Reads a frame block from local file system.
+	 * 
+	 * @param filePathAndName file to read
+	 * @return frame block
+	 * @throws IOException if IOException occurs
+	 */
 	public static FrameBlock readFrameBlockFromLocal(String filePathAndName) throws IOException {
 		return (FrameBlock) readWritableFromLocal(filePathAndName, new FrameBlock());
 	}
 	
-	/** Reads a frame block from local file system. */
+	/** Reads a frame block from local file system.
+	 * 
+	 * @param filePathAndName file to read
+	 * @param reuse frame block to reuse
+	 * @return frame block
+	 * @throws IOException if IOException occurs
+	 */
 	public static FrameBlock readFrameBlockFromLocal(String filePathAndName, FrameBlock reuse) throws IOException {
 		return (FrameBlock) readWritableFromLocal(filePathAndName, reuse);
 	}
 	
-	/** Reads a matrix/frame block from local file system. */
+	/** Reads a matrix/frame block from local file system.
+	 * 
+	 * @param filePathAndName file to read
+	 * @param matrix if true, read matrix. if false, read frame.
+	 * @return cache block (common interface to MatrixBlock and FrameBlock)
+	 * @throws IOException if IOException occurs
+	 */
 	public static CacheBlock readCacheBlockFromLocal(String filePathAndName, boolean matrix) throws IOException {
 		return (CacheBlock) readWritableFromLocal(filePathAndName, matrix?new MatrixBlock():new FrameBlock());
 	}
@@ -97,9 +125,10 @@ public class LocalFileUtils
 	 * Reads an arbitrary writable from local file system, using a fused buffered reader
 	 * with special support for matrix blocks.
 	 * 
-	 * @param filePathAndName
-	 * @return
-	 * @throws IOException
+	 * @param filePathAndName file to read
+	 * @param ret hadoop writable
+	 * @return hadoop writable
+	 * @throws IOException if IOException occurs
 	 */
 	public static Writable readWritableFromLocal(String filePathAndName, Writable ret)
 		throws IOException
@@ -119,17 +148,32 @@ public class LocalFileUtils
 		return ret;
 	}
 	
-	/** Writes a matrix block to local file system. */
+	/** Writes a matrix block to local file system.
+	 * 
+	 * @param filePathAndName file to write
+	 * @param mb matrix block
+	 * @throws IOException if IOException occurs
+	 */
 	public static void writeMatrixBlockToLocal(String filePathAndName, MatrixBlock mb) throws IOException {
 		writeWritableToLocal(filePathAndName, mb);
 	}
 	
-	/** Writes a matrix block to local file system. */
+	/** Writes a matrix block to local file system.
+	 * 
+	 * @param filePathAndName file to write
+	 * @param fb frame block
+	 * @throws IOException if IOException occurs
+	 */
 	public static void writeFrameBlockToLocal(String filePathAndName, FrameBlock fb) throws IOException {
 		writeWritableToLocal(filePathAndName, fb);
 	}
 	
-	/** Writes a matrix/frame block to local file system. */
+	/** Writes a matrix/frame block to local file system.
+	 * 
+	 * @param filePathAndName file to write
+	 * @param cb cache block (common interface to matrix block and frame block)
+	 * @throws IOException if IOException occurs
+	 */
 	public static void writeCacheBlockToLocal(String filePathAndName, CacheBlock cb) throws IOException {
 		writeWritableToLocal(filePathAndName, cb);
 	}
@@ -138,9 +182,9 @@ public class LocalFileUtils
 	 * Writes an arbitrary writable to local file system, using a fused buffered writer
 	 * with special support for matrix blocks.
 	 * 
-	 * @param filePathAndName
-	 * @param mb
-	 * @throws IOException
+	 * @param filePathAndName file to write
+	 * @param mb Hadoop writable
+	 * @throws IOException if IOException occurs
 	 */
 	public static void writeWritableToLocal(String filePathAndName, Writable mb)
 		throws IOException
@@ -155,14 +199,7 @@ public class LocalFileUtils
 			IOUtilFunctions.closeSilently(out);
 		}	
 	}
-	
-	
-	/**
-	 * 
-	 * @param filePathAndName
-	 * @param data
-	 * @throws IOException
-	 */
+
 	public static void writeByteArrayToLocal( String filePathAndName, byte[] data )
 		throws IOException
 	{	
@@ -179,13 +216,6 @@ public class LocalFileUtils
 		}
 	}
 
-	/**
-	 * 
-	 * @param filePathAndName
-	 * @param outValues
-	 * @return
-	 * @throws IOException 
-	 */
 	public static int readBlockSequenceFromLocal( String filePathAndName, Pair<MatrixIndexes,MatrixValue>[] outValues, HashMap<MatrixIndexes, Integer> outMap) 
 		throws IOException
 	{
@@ -210,14 +240,7 @@ public class LocalFileUtils
 			
 		return bufferSize;
 	}
-	
-	/**
-	 * 
-	 * @param filePathAndName
-	 * @param inValues
-	 * @param len
-	 * @throws IOException 
-	 */
+
 	public static void writeBlockSequenceToLocal( String filePathAndName, Pair<MatrixIndexes,MatrixValue>[] inValues, int len ) 
 		throws IOException
 	{
@@ -240,12 +263,6 @@ public class LocalFileUtils
 		}	
 	}
 
-
-	/**
-	 * 
-	 * @param dir
-	 * @return
-	 */
 	public static boolean createLocalFileIfNotExist(String dir) {
 		boolean ret = true;		
 		File fdir = new File(dir);
@@ -254,20 +271,11 @@ public class LocalFileUtils
 		
 		return ret;
 	}
-	
-	/**
-	 * 
-	 * @param dir
-	 */
+
 	public static void deleteFileIfExists(String dir) {
 		deleteFileIfExists(dir, false);
 	}
-	
-	/**
-	 * 
-	 * @param dir
-	 * @param fileOnly
-	 */
+
 	public static void deleteFileIfExists(String dir, boolean fileOnly) 
 	{
 		File fdir = new File(dir);
@@ -280,24 +288,12 @@ public class LocalFileUtils
 				rDelete(fdir);	
 		}
 	}
-	
-	/**
-	 * 
-	 * @param dir
-	 * @return
-	 */
+
 	public static boolean isExisting(String dir) {
 		File fdir = new File(dir);
 		return fdir.exists();
 	}
 
-	
-	/**
-	 * 
-	 * @param dir
-	 * @param permission
-	 * @return
-	 */
 	public static boolean createLocalFileIfNotExist( String dir, String permission )
 	{
 		boolean ret = true;
@@ -310,12 +306,7 @@ public class LocalFileUtils
 		
 		return ret;
 	}
-	
-	/**
-	 * 
-	 * @param file
-	 * @param permissions
-	 */
+
 	public static void setLocalFilePermissions( File file, String permissions )
 	{
 		//note: user and group treated the same way
@@ -332,12 +323,7 @@ public class LocalFileUtils
 	///////////
 	// working dir handling
 	///
-	
-	/**
-	 * 
-	 * @param dir
-	 * @return
-	 */
+
 	public static String checkAndCreateStagingDir(String dir) {
 		File f =  new File(dir);		
 		if( !f.exists() )
@@ -346,20 +332,10 @@ public class LocalFileUtils
 		return dir;
 	}
 
-	/**
-	 * 
-	 * @return
-	 * @throws DMLRuntimeException 
-	 */
 	public static String createWorkingDirectory() throws DMLRuntimeException {
 		return createWorkingDirectoryWithUUID( DMLScript.getUUID() );
 	}
-	
-	/**
-	 * 
-	 * @return
-	 * @throws IOException 
-	 */
+
 	public static String createWorkingDirectoryWithUUID( String uuid )
 		throws DMLRuntimeException 
 	{
@@ -392,31 +368,18 @@ public class LocalFileUtils
 		
 		return _workingDir;
 	}
-	
-	/**
-	 * 
-	 */
+
 	public static void cleanupWorkingDirectory() {
 		if( _workingDir != null )
 			cleanupWorkingDirectory( _workingDir );
 	}
-		
-	/**
-	 * 
-	 * @param dir
-	 * @return
-	 */
+
 	public static void cleanupWorkingDirectory(String dir) {
 		File f =  new File(dir);
 		if( f.exists() )
 			rDelete(f);
 	}
-	
-	/**
-	 * 
-	 * @param dir
-	 * @return
-	 */
+
 	public static int cleanupRcWorkingDirectory(String dir) {
 		int ret = 0;		
 		File f =  new File(dir);
@@ -429,7 +392,7 @@ public class LocalFileUtils
 	/**
 	 * Recursively deletes an entire local file system directory.
 	 * 
-	 * @param dir
+	 * @param dir directory to delete recursively
 	 */
 	public static void rDelete(File dir)
 	{
@@ -449,8 +412,8 @@ public class LocalFileUtils
 	 * Recursively deletes an entire local file system directory
 	 * and returns the number of files deleted.
 	 * 
-	 * @param dir
-	 * @return
+	 * @param dir directory to delete recursively
+	 * @return number of files deleted
 	 */
 	public static int rcDelete(File dir)
 	{
@@ -470,11 +433,6 @@ public class LocalFileUtils
 		return count;
 	}
 
-	/**
-	 * 
-	 * @return
-	 * @throws DMLRuntimeException 
-	 */
 	public static String getWorkingDir() 
 		throws DMLRuntimeException
 	{
@@ -482,13 +440,7 @@ public class LocalFileUtils
 			createWorkingDirectory();
 		return _workingDir;
 	}
-	
-	/**
-	 * 
-	 * @param category
-	 * @return
-	 * @throws DMLRuntimeException 
-	 */
+
 	public static String getWorkingDir( String category ) 
 		throws DMLRuntimeException
 	{
@@ -503,13 +455,7 @@ public class LocalFileUtils
 		
 		return sb.toString();
 	}
-	
-	/**
-	 * 
-	 * @param category
-	 * @return
-	 * @throws DMLRuntimeException 
-	 */
+
 	public static String getUniqueWorkingDir( String category ) 
 		throws DMLRuntimeException
 	{
@@ -535,9 +481,9 @@ public class LocalFileUtils
 	 * and several export functionalities. 	 
 	 *  
 	 * 
-	 * @param fname
-	 * @param hdfs
-	 * @return
+	 * @param fname file name
+	 * @param hdfs true if check for HDFS
+	 * @return true if valid filename
 	 */
 	public static boolean validateExternalFilename( String fname, boolean hdfs )
 	{

http://git-wip-us.apache.org/repos/asf/incubator-systemml/blob/13c0b06d/src/main/java/org/apache/sysml/runtime/util/LongLongDoubleHashMap.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/sysml/runtime/util/LongLongDoubleHashMap.java b/src/main/java/org/apache/sysml/runtime/util/LongLongDoubleHashMap.java
index be9b25a..f3b331a 100644
--- a/src/main/java/org/apache/sysml/runtime/util/LongLongDoubleHashMap.java
+++ b/src/main/java/org/apache/sysml/runtime/util/LongLongDoubleHashMap.java
@@ -47,13 +47,7 @@ public class LongLongDoubleHashMap
 	public int size() {
 		return size;
 	}
-	
-	/**
-	 * 
-	 * @param key1
-	 * @param key2
-	 * @param value
-	 */
+
 	public void addValue(long key1, long key2, double value)
 	{
 		//compute entry index position
@@ -78,11 +72,7 @@ public class LongLongDoubleHashMap
 		if( size >= LOAD_FACTOR*data.length )
 			resize();
 	}
-	
-	/**
-	 * 
-	 * @return
-	 */
+
 	public ArrayList<LLDoubleEntry> extractValues()
 	{
 		ArrayList<LLDoubleEntry> ret = new ArrayList<LLDoubleEntry>();
@@ -98,10 +88,7 @@ public class LongLongDoubleHashMap
 
 		return ret;
 	}
-	
-	/**
-	 * 
-	 */
+
 	private void resize() {
 		//check for integer overflow on resize
 		if( data.length > Integer.MAX_VALUE/RESIZE_FACTOR )
@@ -123,13 +110,7 @@ public class LongLongDoubleHashMap
 			}
 		}
 	}
-	
-	/**
-	 * 
-	 * @param key1
-	 * @param key2
-	 * @return
-	 */
+
 	private static int hash(long key1, long key2) {
 		int h = UtilFunctions.longlongHashCode(key1, key2);
 		
@@ -140,19 +121,10 @@ public class LongLongDoubleHashMap
 		return h ^ (h >>> 7) ^ (h >>> 4);
 	}
 
-	/**
-	 * 
-	 * @param h
-	 * @param length
-	 * @return
-	 */
 	private static int indexFor(int h, int length) {
 		return h & (length-1);
 	}
-	
-	/**
-	 * 
-	 */
+
 	public class LLDoubleEntry {
 		public long key1 = Long.MAX_VALUE;
 		public long key2 = Long.MAX_VALUE;

http://git-wip-us.apache.org/repos/asf/incubator-systemml/blob/13c0b06d/src/main/java/org/apache/sysml/runtime/util/MapReduceTool.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/sysml/runtime/util/MapReduceTool.java b/src/main/java/org/apache/sysml/runtime/util/MapReduceTool.java
index de6b8e8..3a37377 100644
--- a/src/main/java/org/apache/sysml/runtime/util/MapReduceTool.java
+++ b/src/main/java/org/apache/sysml/runtime/util/MapReduceTool.java
@@ -226,12 +226,6 @@ public class MapReduceTool
 		}
 	}
 
-	/**
-	 * 
-	 * @param dir
-	 * @return
-	 * @throws IOException
-	 */
 	public static String getSubDirs(String dir) 
 		throws IOException 
 	{
@@ -246,12 +240,6 @@ public class MapReduceTool
 		return sb.toString();
 	}
 
-	/**
-	 * 
-	 * @param dir
-	 * @return
-	 * @throws IOException
-	 */
 	public static String getSubDirsIgnoreLogs(String dir) 
 		throws IOException 
 	{
@@ -272,9 +260,9 @@ public class MapReduceTool
 	/**
 	 * Returns the size of a file or directory on hdfs in bytes.
 	 * 
-	 * @param path
-	 * @return
-	 * @throws IOException
+	 * @param path file system path
+	 * @return file size
+	 * @throws IOException if IOException occurs
 	 */
 	public static long getFilesizeOnHDFS( Path path ) 
 		throws IOException
@@ -475,20 +463,7 @@ public class MapReduceTool
 			throw new IOException("Error creating and writing metadata JSON file", e);
 		}
 	}
-	
-	/**
-	 * 
-	 * @param mtdfile
-	 * @param vt
-	 * @param schema
-	 * @param dt
-	 * @param mc
-	 * @param outinfo
-	 * @param formatProperties
-	 * @return
-	 * @throws JSONException 
-	 * @throws DMLRuntimeException 
-	 */
+
 	public static String metaDataToString(String mtdfile, ValueType vt, ValueType[] schema, DataType dt, MatrixCharacteristics mc, 
 			OutputInfo outinfo, FileFormatProperties formatProperties) throws JSONException, DMLRuntimeException
 	{
@@ -646,25 +621,14 @@ public class MapReduceTool
 	    currentStream.close();
 		return new double[] {ret, (average ? -1 : readValue.get()), (average ? -1 : cum_weight)};
 	}
-	
-	/**
-	 * 
-	 * @param name
-	 * @return
-	 */
+
 	public static int extractNumberFromOutputFile(String name)
 	{
 		int i=name.indexOf("part-");
 		assert(i>=0);
 		return Integer.parseInt(name.substring(i+5));
 	}
-	
-	/**
-	 * 
-	 * @param dir
-	 * @param permissions
-	 * @throws IOException
-	 */
+
 	public static void createDirIfNotExistOnHDFS(String dir, String permissions) 
 		throws IOException
 	{
@@ -689,15 +653,7 @@ public class MapReduceTool
 		//NOTE: we depend on the configured umask, setting umask in job or fspermission has no effect
 		//similarly setting MRConfigurationNames.DFS_DATANODE_DATA_DIR_PERM as no effect either.
 	}
-	
-	
-	/**
-	 * 
-	 * @param filename
-	 * @param overwrite
-	 * @return
-	 * @throws IOException
-	 */
+
 	public static FSDataOutputStream getHDFSDataOutputStream(String filename, boolean overwrite) 
 		throws IOException
 	{

http://git-wip-us.apache.org/repos/asf/incubator-systemml/blob/13c0b06d/src/main/java/org/apache/sysml/runtime/util/SortUtils.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/sysml/runtime/util/SortUtils.java b/src/main/java/org/apache/sysml/runtime/util/SortUtils.java
index a0cc397..5c75a81 100644
--- a/src/main/java/org/apache/sysml/runtime/util/SortUtils.java
+++ b/src/main/java/org/apache/sysml/runtime/util/SortUtils.java
@@ -30,13 +30,7 @@ import org.apache.sysml.runtime.controlprogram.parfor.stat.Timing;
  */
 public class SortUtils 
 {
-	/**
-	 * 
-	 * @param start
-	 * @param end
-	 * @param indexes
-	 * @return
-	 */
+
 	public static boolean isSorted(int start, int end, int[] indexes)
 	{
 		boolean ret = true;
@@ -47,15 +41,7 @@ public class SortUtils
     		}
 		return ret;
 	}
-	
-	/**
-	 * 
-	 * @param iStart
-	 * @param iEnd
-	 * @param dVals
-	 * 
-	 * @return true/false, if its sorted or not.
-	 */
+
 	public static boolean isSorted(int iStart, int iEnd, double[] dVals)
 	{
 		boolean ret = true;
@@ -71,10 +57,10 @@ public class SortUtils
 	 * In-place sort of two arrays, only indexes is used for comparison and values
 	 * of same position are sorted accordingly. 
 	 * 
-     * @param start
-     * @param end
-     * @param indexes
-     * @param values
+     * @param start starting index
+     * @param end ending index
+     * @param indexes array of indexes to sort by
+     * @param values double array of values to sort
      */
     public static void sortByIndex(int start, int end, int[] indexes, double[] values) 
     {
@@ -180,10 +166,11 @@ public class SortUtils
 	 * In-place sort of three arrays, only first indexes is used for comparison and second
 	 * indexes as well as values of same position are sorted accordingly. 
 	 * 
-     * @param start
-     * @param end
-     * @param indexes
-     * @param values
+     * @param start starting index
+     * @param end ending index
+     * @param indexes ?
+     * @param indexes2 ?
+     * @param values ?
      */
     public static void sortByIndex(int start, int end, int[] indexes, int[] indexes2, double[] values) 
     {
@@ -303,13 +290,6 @@ public class SortUtils
         }
     }
 
-    /**
-     * 
-     * @param start
-     * @param end
-     * @param values
-     * @param valuesXXX
-     */
     public static void sortByValue(int start, int end, double[] values, int[] indexes) 
     {
         double tempVal;
@@ -415,10 +395,10 @@ public class SortUtils
 	 * In-place sort of two arrays, only indexes is used for comparison and values
 	 * of same position are sorted accordingly. 
 	 * 
-     * @param start
-     * @param end
-     * @param indexes
-     * @param values
+     * @param start start index
+     * @param end end index
+     * @param values double array of values to sort
+     * @param indexes int array of indexes to sort by
      */
     public static void sortByValueStable(int start, int end, double[] values, int[] indexes) 
     {    
@@ -440,31 +420,13 @@ public class SortUtils
 		}
     }
 
-      
-    
-    /**
-     * 
-     * @param array
-     * @param a
-     * @param b
-     * @param c
-     * @return
-     */
     private static int med3(int[] array, int a, int b, int c) 
     {
         int x = array[a], y = array[b], z = array[c];
         return x < y ? (y < z ? b : (x < z ? c : a)) : (y > z ? b : (x > z ? c
                 : a));
     }
-    
-    /**
-     * 
-     * @param array
-     * @param a
-     * @param b
-     * @param c
-     * @return
-     */
+
     private static int med3(double[] array, int a, int b, int c) 
     {
         double x = array[a], y = array[b], z = array[c];