clean up and test snlinverter. needs more work.