Clean up files
Add simple bounds checker to engine.