implement singleton factory for levels
implemented xml level storage
Merge branch 'master', remote-tracking branch 'origin' into xmlsingleton