Fixed tablename function
Added more documentation
Added create method