added comments for interpretCommand function.