using the heading function for better output formatting. closes #30