Fixed chart extremes
Added comments
Integer cleanup and adding line customization