fix miswriting
aps input/output interface refactory

1)change wtr trigger mechanism
2)seperate output interface into three smaller ones
4)add squench output interface