First commit

Add main loop and entity class