Bug fixes, updates to math book edition 2