Added Code :D

Added the base code and fixed some bugs.