Fixing platform files and adding doc