updated main file, added new files

- basic state machine
- memory added
- added edge detectors
- added ccd reader