Fixed xml
Added basic CSV builder
Added missing oauth code