negative numbers support

negative numbers support added. also index file encoding corrected.