added get_posts method and started work on comments