added setup, fixed req, app factory, travis