init, code, comment handling and tests