add save method to retrieve current state of component
change name of method to getState
Merge pull request #1 from thelmanews/feature/save-component

add save method to retrieve current state of component