added update component function
added unit test and fixed stupid error
Merge branch 'master' of https://github.com/icm-yairiny/brute into feature/update-component
Moved update-component and added a docstring.