Removed unwanted example functions and restructred source tree