Lot of commit.

Added portal, some refactoring, docs...