Fixed a bunch of errors in the topic model / posts model / routes files that was blowing my app up