changes to method param names. unit tests
subgrad doc