Speed optimisations, random movies support, added more flags to video info, code clean-up