Implemented first test-procedures and fixed few bugs in signal-generator