Moving functions out to a separate file;

Cleaning up some paths to be more generic;

Added alias for ruby, functions for rook's history commands

✈️💺