Added context to errors

Now able to give a context or user id to identify errors