Item library improved and was stuff changed

some documentation
fixed a few bugs
oh, and the SciTE compatibility stuff
I suck at writing commit titles...