added several more methods for stringify
fixed minor syntax bugs and added matrix stringify method