documented functions determine and invoke
release 0.0.5
optimized 'invoke' function for better code coverage