Fixed some things, added a way to log to console errormator