added debug property to log function
added test for type of profile or state that is being sent
fixed ruuid reference
updated hash to explicitly handle null param
updated build