Identity ep

#128 is done here. Implemented `--export` and `--public`. The merge part should work straight forward.