Repair little mistakes in classes

add Engine constructor