Refactored commands and cleaned up gist package to export one API