Cleanded up a lot of code, added video saving option