Some refactoring and try to fix the bug which autoscrolling not working the first time view is builbuilt
Rename some methods
Add header comments, 2 #warnings
Fix the autoscrolling problem when the mode is scrollingImage
Remove checked warnings
Little format modification