Fixed many issues, now compatible with provided test input