separating main class from source and removing .class files