Cleaned up and improved VM debugging statements, added local function location tracking