Refactored argument parsing, better object names and added getallpages and getallusers