Code rewritten entirely (decent mangling syntax, more readable code…), fixed the README file and modified the test file accordingly