Convert slave to defined class and add documentation