fixed a few editorial issues identified by Marting