Changed error messages

Fleshed out some error messages within the utility functions
Several minor bugfixes, moving away from vectors

Added several minor bugfixes and began preparing the interface
for use with R. As part of this, began moving away from STL
classes like vector<> for external-facing data (images, bands,
etc.)