bug fixes, esp. getting the pulse wave osci to work correctly