implemented memory profiling (mode 3)
- also found some functions that didn't identify themselves