fixed oversized videos and images and misc bug fixes plus cleanup