Modified configure.sh

Merging previously existing commits into a single commit. Added a few minor edits.