Added a way to transform session on parse call. Added some comments