added logic flags to the appropriate methods and checkboxes to the main page to toggle logic on or off.
Merge pull request #6 from tmountjr/lookahead

merge loookahead logic to master