changed goals. added link to wiki page
* added comments
* more semantic names
* readded(?) wikipedia function