added markdown
implemented pagination