cosmetics: function order
Added Comments