Fixed #2
Fixed 3
Fixed #4 and #3
Fixed #6 and #5
Fixed #5 and #6
Fixed all issues