Added documentation, inlined var, reformatted comment, see #316