update a few code samples for swagger and akka