add calculateDOS and somee comments