added codecs
some documentation
added comments, changed main class to Video from Vid