clean up files, begin update and delete functionalities for post class