Added a noindent for import debugging. Added main autogen. Better class inject support w.r.t main mods. Fixed issues in doctests. added main_list doctest