Added fade in/out plus some cleanup

Added documentation, mirrored sawtooth waves, and fixed triangle wave
generation.