Added insert and update to File API

See tests for basic usage.