Some improvements.

 - Code refactoring.
 - NSSM updated to 2.23.
 - Added more options.