Modify API to no longer depend on ByteSequence

Pull request for #94