Changed writables package to outputs. Fixed some tests. Tests added