Refactor Ruby glue code for MP4
Add more documentation for MP4