renamed function to get property, new function to return custom message
added function to pass customized messages
added test for issue 21
removed commented line