MAINT: split base file.

Closes #7
MAINT: Move `__main__` to examples folder.

Closes #9