First run at API + usage examples

Add md and latex, abstract class names, template fixes
[ci skip]