LPS-35675

Hey Milen,

I'm sending you this pull just for the purpose of training. I have tried my best to do many independent commits with source formatting changes and have explained each of them. There are also other things that I haven't changed yet, specially within simple_rule.jsp but I've made enough changes that I need to merge the commits to keep going so I wanted you to have them separate.

You don't need to do anything with this pull other than taking a look at my commits for learning.