Multiple changes

Removed the .ps1 file, converted it to a module.  Added more depth to
the error handling.