Working version of sloc
Added docs