Fixed bugs and added docs to arg decorator

Made usage of argtype consistent and added documentation
for usage of the decorator.