Renaming and start adding sub systems.

Also started with code structure and sample key handling and rendering.