Fixed bug causing posts window to not appear if no posts available, implemented log system, added command to clean up tmp files