Operating as an SCorp is a common business structure. Here are some good in depth publications that will help you operate your SCorp in compliance.
IRS Fact Sheet Reasonable Compensation
IRS Fact Sheet S Corporation Compensation and Medical Insurance Issues
Here are a few templates to use as guidelines.
Example Home Office Expenses Worksheet
AccountablePlanSample2018-2025