Move sources to src directory
Added some tests. TODO: Make them run.