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)