solving variables missing and comment html output generation, to be implemented as external package