Corrected rotation vector calculation; enabled writing pose records to file.