fix several classes to make the project compile

Plus, add SedStackerTest test and make sure it works,
which involved fixing classes and interfaces.