Use a better mat conversion function.
Fix memory leak and use new matconv.
Read docs; Fixed bugs.
Fix memory leak.
Begin implementation of main AR pipeline.