* Added 'clear' method
* Fixed array handling