Modify API to no longer depend on ByteSequence

Pull request for #94
Would be nice to avoid this dependency also