Add ability to edit periods (issue #3)