Sm errors

Pull request serving as process for moving the repo to the more node-like setup of errors first and then response if success.