fixed proc file data function implementation and some syntax