adjusted timing; added debug keypresses to update camera; other bug fixes