fixed insertsale procedure, added payment calculation, fomated some strings