Fixed wrong selection error.
Changed some structure (comments in code)
Added priority back in. Comments in the .cpp as to what needs to be changed still
Same as last
Merge pull request #1 from MichaelCooper/master

priority added