Removing old code. Structuring code in lib and spec folder.