Cleaned stage-1. Reduced number of labels in stage-2. Fixed some bugs.