fixed compilation errors and memory leaks
stopped including massive input file