Made unread threads to be initially expaneded when they contain an
unread post. Removed unneeded variables