Fixed. Added comments too.