clean up alternatives support

add show support
add example
export to python
fix various bugs