Changed slave.cc to slave.ino so that it is arduino code. Started implementing functions imported from custom libraries.