added test script, using tap instead of tape
fix broken if statement
crude overhaul to use livestream