Gorthaur refactor

This now works as a gem!