Added pagination, 10 posts per page, fugly style for pagination links. But it works correctly.