reorganizes sources
cs / ws
exits if passed filename does not exist