[09-02-13] Some functions renamed. State constructor added.