Move the code for running commands to its own method.
Move the code for removing ignored files to its own method.
Bump version to 0.5.0