added unit tests
made more library friendly, release camera properly
made more library friendly, increased timeout to 10