Refactoring; more long pieces

 * made long pieces appear twice as often as others
 * replaced magic numbers with constants
 * documented the code