Version 1.0

Working version. Code clean finished.