various improvements
added cmd line args for pulsesync