Reorganized files, added API directory