Now saves the last camera used to config file, and loads it at startup. Added documentation for output process and fixed errors. Also removed unneeded method.
added some documentation and removed some unneeded code