Refactored to parse component

- added convertComponents() and to use it for parsing attribute parameters
Merge pull request #6 from evalphobia/refactor-convert-component

Refactored to parse component