added api & cleaned up unused files