Added spUrl to ctor. Fixed some 'if' style (no curly braces). Fixed _raw and _json in profile obejct