adding some Table features
added comments to existing functions