moved file types enum to enum-class and added documentation