Added Item support in scripting and fixed a few parser bugs.