Fix indent issues and add ability to repeat table header every 10 rows