Implemented primary and secondary extensions. Added support for video files handling. Fixed tests.