Add better formating and documentation.