Merge pull request #17 from dtcaciuc/master

Create mode package, convert modes to use command objects