Code for Kaggle classification competition (when it was written it was ranked 8 (out of 543))