add contstant factor, add documentation