added page length option. added constraints for has_audio and has_video. fixed highlighting so that custom constraints aren't accidently included