Added STL use; fixed a few bugs
Merge pull request #1 from dgodfrey95/master

Added STL use; fixed a few bugs. thanks to dgodfrey95