Knowledge base and parameter settings

- knowledgebase settings for better recognition
- parameters settings for better line recognition