Typo's fixed
Viewinstance edited
Fixed imports + format code
Added explanation to assert