add tests for methodAdded and methodRemoved events
add code for methodAdded and methodRemoved events
document methodAdded and methodRemoved events