Updated reference docs. Improved source readability and output formatting.