Please add some additional comments. This code is quite dense ;).