Added compression type code and builder pattern from the galago trunk
Added compression type code and builder pattern from the galago trunk