deleted 'major'-variable from init function & done some minimal code formatting