Fixed bug in field check for user defined input
Added JSdoc @param to private functions

Updated UNKNOWN_FIELD message

Removed white-space