Added two conditions for checking if rest/chord for musical grammar parsing. Also added last chord functionality.