Fix typo errors and add assigned_when attribute
Fix more typos, add description to assigned_when