Added generic view class. Removed some view classes. Fixed style. Fixed memory leak.