Fixed named types and updated documented