moved core methods to another file
bump version to 0.2.2