Little enhancement on commit() method: chaining

Just a little return so you can chain commit() methods =)
This may be applied to every methods to make the library more flexible
Trailing spaces removal + new line at EOF

Cf. IDE configuration standards we defined for the project