added pagination and some linting.