Add lots of comments and clean the code of all packages