Fixed the getops loop
Fixed a copypasta error in the cutting
Merge pull request #3 from llowder/master

rewrite