Added a json based config file, moved around functions

Signed-off-by: Dan Printzell <xwildn00bx@gmail.com>