Added documentation

- Added comments and headers to relevant files
- Also caught an edge case where, if no slide was selected, the insert
poll option wouldn't work.