moved command logic into separate command
added check if script is called as composer component or not
prepared for release 1.0.2