Main variable selection working

Added varaible select as seperate, included file