Started implementation of the allocation and write functions in the video class.

Added a bunch of comments on the functions and typedefs created last two days.