commented out and added some explanation on optimizer module
Added documentation