docs and bugfix with type array and negative numbers