Check bounds when setting register based on user input

    Also added exeception handling to main.cpp to catch
    fatal errors (and then abort()).
Merge remote branch 'origin/master'