issue#110:
-endpoint_type moved to the config .rb file
-test updated
-endpoint_type error message added
-readme annotated