Added some API features, and simple error mngmt.
Fell on some dirty pictures, and strange one, try undefined tag...