Round video capture frames count
Throw exception in a correct way
Mark private functions as... private
Minor renaming
Add document processing functionality