refactoring element processing to its own function
refactoring all methods to use the newly created findElement
fixing typos
Merge pull request #3 from fmonsalvo/get-element

Get element