Cleaned up code, added viewfinder, fixed crash due to horrible documentation