Implement the paths module

The paths module has been implemented, now basically all the main
modules has been preliminarily coded.