Fix LinearDecay and add test for it
Fix formatting
Merge pull request #436 from Rambominator/master

Fix LinearDecay and add test for it