Minor changes

Made operation chars constants, removed some unnecessary ifs, added a
new constructor.