Fixes many tickets

Fixes #69 
Fixes #80 
Fixes #73 
Fixes #74 
Fixes #82 
Fixes #79 
Fixes #81 
Fixes #74 
Fixes #89 
Fixes #88 
Fixes #87 
Fixes #90 
Fixes #91