Update to foundation 5

Pull resolves #26