Set either beginning or ending

We could set either beginning or ending and not have to set both.
Timeline hangs if we set either beginning or ending.
Merge pull request #33 from wenzul/master

Set either beginning or ending