Some Improvements

Add equals and toString method to the Component and Mode class.

Add the "main" file for dummy test