added working comments.  fixed some functionality bugs.  need to error handle and prompt user.