added update peers method
renamed app file, accepting params, uses~ more stuff from config