added char
fixed bug with char
fixed bugs and improved space allocating system