added functionality for creation of service skeletons and refactored all the code