Fixed a bug & updated out of bounds message

Fixed a bug where if the output file already existed it would append to it instead of overwritting it.

Also fixed the out of bounds message to properly define the bounds of the selection.