Update attr regex
Add some doc
Updates
Update session import
Reduce line length