Inserting to a timeline code fixes and first test pass #1
Test error case. Also update docs to match api #1