add debug mode
progress...
correcting a few bugs
progress
progress