Clean code and remove unused libraries

* Adds comments to the Post module