split of leg to make things look more clean
add tests + index.html for new files