remove comments and extra imports