API moved to class/ & main class deleted