cleaned up code

commented, deleted old files