initial work on api - created packages and moved a few classes