beautified code + added missing API doc file