fixed for new @spec format, change from to_binary to to_bitstring, added simple id function