Laboration 4

Work in progress. Working pulse switching, decrease, increase and reset.