I added the increment and decrement functions

I also added two tests. If you need, I can change something to make it more consistent with the main repository?

Matteo