repaired formatting, documentation and improved tests