bug fixes, changed memory allocation setup, added a start of videocompare

video compare is not done. so it will not work. don't panic.