Complete SP implementation; Update docs and example