Reworked JavaDoc-comments for all components.
Reworked NOT and OR gate to use helper class.