some typois and code issues fixing

made with syntax analyzer