latest ol3 and also document the code inline