removed debug functions; renamed main file