removed some warnings via adding documentation