Building functionality added
Added docstrings