Added better function documentation
Removed floating comment, not allowed due to coding style