version 0.2; added CHANGELOG; revamped algorithms, cut down SLOC