prettifying and commenting of source
handle missing (optional) elements