added Moore and Mealy Components, implemented moore
working basic functionality with moore