Add some documentation, refactor folder magic.