Enhanced stat/lstat to open a master side file.
Arranged the source code style.