improved inline docs, add version constant