Adds sort and analyze command. Bumps version to 0.4.