add gitignore
scaffold for main and fix rule_to_binary fn
getState and expand main