Restructured folders

I have reordered folders and separated tests and lib files.
Fix #46