cleaned up code/bug fixes

fixed minute/minutes issue
added more comments
cleaned up indentation
now correctly returns a failure if errors are encountered in getting the tides