Allowing class to be passed (optionally) to buildNewObject

Updating README.md