compilation fixed. comments added.