added sample test code, fixed bug so functions contain all
of their instructions, not just the first ones

TODO: add better testing for function and basic block identification
(use IDA for basic blocks?)