Full code review

Format your code in a more readable way like in here: 
https://gist.github.com/waleking/5477002#file-sparkgibbslda-scala-L162

Same as above: use meaningful names, even if they are longer. Rewrite map/reduce/filter functions like I said above.