READ PREVIOUS COMMIT MSG. Less seg faults now, working on getting all functionality up from getType() functions