make Main class and remove unnecessary test sources