7.x filename conventions

Also did coding standards compliance and fixed some small bugs since the module was small.