commenting changes
move api spacing and login, add error handling to low-level request
rename a var