updated fabric file, added code comment and documentation