Put @FokkeZB's alloy function in a separate `alloy` module
and minor clean up
version bump