changed receiving functions
added commentary
test function improvements
changes to testing
added waf