added major functionality in the sets and formatter. Blurred some lines.