Better logging out put, tests now using RSpec, better error handling.