Added more api inline documentation.
Added documentation.
Fixed paging bug for template sets not divisible by 4