added interpreter style mode and summary. passed all unit tests