done except for debugging! and Main comment...