Code Cleanup

-Updated code for pi to camera to be cleaner.