added autoindent, fixed some bugs, refactored how config works