added many pretty errors messages, fixed location tracking problems, propagating function names