Use ENV['HOME'] instead of ~
Remove extra requires
Fix a few bugs