Refactoring GUI + cleaning code + debut doc