Made some source format corrections
Added commenting to various files