Cleaning up code. Fixing some updating issues. New stable release