made post the default method for POST and GET for the other one. Also minor renaming