added blog link, license information and rank definition
fixed algo that truncates values
indentation