fix indentation
clean up the code, no need to create a scope in there
write some usage docs