Handling so if element not found, board will be added to HTML body.
Added comments on function parameters.