Make <constants> node optional, constructor and more...

* set scene by constructor
* make `<scene>` attributes optional
* make `<constants>` node optional
* minor code style update