fixed some basic bugs, names of static functions, typos, etc
f_repo -> r_repo
supply now passes initial structure test
arc preferences confirmed