Fixed: typo
Improved: added comments, marked function as private
Built sources