Updates to exercise codes. Added improvements.