formatting into rubygem
adding config file support