Added comments, added Cases for emc and changed output statements.