fix rtrim; implement working interp and args; write unit tests for them