Spacing niceness
Documentation improvements
nicer trimming for easier testing
phpunit tests added