Adding semicolons.
Allow setting only top or bottom offset instead of requiring both.
Merge pull request #6 from wGEric/default-offsets

Allow setting either top or bottom offsets only
Fixed a bug that would cause events to fire at the wrong time since the initial value of some variables was wrong.