Rewrote most of the code

Added comments
Split out settings
Split out PS3 constants
Added timelapse function
Improved responsivity (CPU is now the main bottleneck on image display)
Merge pull request #5 from dpwrussell/master

Rewrote most of the code