got pagination to work, fixed up comments a bit. going to see if i can create models for posts and comments and emulate an MVC framework