Add autopublish script
Interface code cleanup
Update docs