exporting as.output and added docs