Moved into namespace, tested inout and output.
Added round function