Lint test and release camera

Ran Lint and fixed issues.
Correctly releases the camera when not in use