modify: refactor Carpet function pattern

- Remove all this.method occurences and return a object with methods
- Store components in a private var
- Add documentation
modify: whitespace removed
new: dist files