Typos and boolean ops

hey, took another look at this, fixed a couple typos and added boolean ops