Move command line code to own folder