renaming folders and raising errors

Process.exit! allows 1 or 0. raising errors allows better debugging