fixed gemfile
refactoring and added posts
added post limit