Moved program files to permanent directory, added post counter, improved cleanup