Added boundary errors and cleaned up GUI a bit.