rename function
fixed config typo + refactored out function
refactor
factoring out functions into modules
added missing files