split out ->reflectParameters and added some better error handling
Improved docblocks; fixed some formatting and typehints
fixing tests, and removing one no longer necessary due to typehinting