update automake buildsystem
move code into src/ subdirectory