undid change so that subgradient calculation works; creating branch for NER app