Organise files into lib and spec folders