corrected some problems and added pdf