Added a number of constants to FileSystem and implemented failure reporting.
Minor cleanup.