Added ulimit parameter

Hello,

I have added the ability to set the unlimit in the init script. 
I was hitting problems with max open files so made the change.

Also as the change was done via Gepetto it has updated the formatting - hence it looks like lots has changed, but it is mostly whitespace fixing and layout.