Made node module generic, for generalized rest API structure
updated documentation within code.