Fixed a bug where using assign attribute for blocks property.
Made code modern.
Updated version 0.0.3
Updated travis.yml.