rewrote and separated wiki class from main